This PR changes how the installer for Windows is built and provides many enhancements.
All the python dependencies are installed in sys.prefix, thus playing with the PYTHONPATH isn't required anymore. This also allows users to install any python dependency with pip. In the past libraries installed afterward were installed in a different path compared to the distributed libs, causing ugly errors
The entry points (like oq, nosetests) are now working properly. We don't have to mock them anymore in the .bat as doskeys or provide fake/out-of-tree entrypoints. This makes also possible to run oq via WINE (which does not full support cmd internals, like doskey); testing via WINE is then a viable option
Installation is modular: base deps are (always) installed from pre-installed tree. The Engine and other optional dependencies are installed at installation time directly via pip. This can be easy extended to support further tools (like oq-mbtk) with extra dependencies.
This PR changes how the installer for Windows is built and provides many enhancements.
sys.prefix
, thus playing with thePYTHONPATH
isn't required anymore. This also allows users to install any python dependency withpip
. In the past libraries installed afterward were installed in a different path compared to the distributed libs, causing ugly errorsoq
,nosetests
) are now working properly. We don't have to mock them anymore in the.bat
asdoskeys
or provide fake/out-of-tree entrypoints. This makes also possible to runoq
via WINE (which does not full supportcmd
internals, likedoskey
); testing via WINE is then a viable optionpip
. This can be easy extended to support further tools (likeoq-mbtk
) with extra dependencies.This is a step towards #97
TODO