Bug report #15577
qgis3/master make install runs 2to3 on output tree, but install from source tree
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:||invalid|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||23501|
Compiling current master (Qt5/Python3) and running make install, installs and runs fine except for the python parts:
testing Python3/Qt5 I get the following message:
line 34, in
Mathieu's conclusion is: "The probem has to do with make install copying python files from the source tree not the output directory (therefore not benefiting from 2to3)"
So we should either run 2to3 on output tree AND install python from there (with fixed files)
run 2to3 on source tree AND copy/install that one
run 2to3 after installation in installed directory?
#4 Updated by Richard Duivenvoorde almost 4 years ago
Well, at the moment the python files are a sort of 'build' (if you define building a little broader then going from source to binary). Also if we would have some other kind if 'builds', like for example beautifying the code or so, it would make more sense to 'install' from the build dir?
My reasoning is, why not install from it? It is not a true build in Computer science way, but we already have the usecase that apparently we install something which apparently needed another ( build ;-) ) step before to be usable in a installation? In current master (Python3/Qt5) an install does not have processing and throws the error.
But if there are other reasons to not install python from build, I'm fine with it for now.