Details
Description
pathlib has been around for a while (since Python 3.4) and we have been encourage its usage in the examples and many places of the pyside-setup repository, but still there are many usages around the build_scripts and other tools that rely on os.path.
Sadly, pathlib cannot replace fully os.path, particularly there is a function os.path.relpath that cannot be migrated to Path.relative_to due to the inability of generating relative paths when there is no direct parent-child relationship between the paths, but os.path.relpath is capable of generating things like ../../something.
Attachments
For Gerrit Dashboard: PYSIDE-2080 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
438029,4 | pathlib: migrate qp5_tool from os.path | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
438030,4 | pathlib: migrate tools away from os.path | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
438031,22 | pathlib: migrate build_scripts away from os.path | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
438938,2 | build scripts: Fix target build_rst_docs | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
442039,2 | Build system: Fix cross builds | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
443459,2 | Build system: Fix another breakage affecting cross builds | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
446720,6 | build system: Further introduce Pathlib | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
446721,5 | build system: Port get_shared_library_filters to pathlib | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
447524,2 | build system: Fix --cmake command line option | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
448705,2 | qp5_tool: Fix root detection | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |