fix/allow-pip-to-fetch-runtime-dependencies-during-isolated-install#48
Conversation
…cies (e.g. numpy) from PyPI during install
|
discussion: #21 |
|
The problem (and why I submitted #21) was because Bartek Palak wanted to use the easybuild config for a released version of imas-core on the EF Gateway. It would download the Python package from PyPI instead of the just-built python package during the install step. The problem is listed here: https://stackoverflow.com/questions/62929339/pip-install-find-links-search-order. It seems that when a version of a package is available both on PyPI and in a folder pointed to with It probably works with your local tests right now, because |
…on with --no-deps and updated readme
Thanks @maarten-ic |
|
Here, --no-deps is added to the pip install step so pip installs only the local package and does not try to install runtime dependencies from the dist/ folder when using isolation. This matches the build step, which also uses --no-deps. |
Removed
--no-indexfrom the pip install command so that runtime dependencies likenumpycan be fetched fromPyPI.when we have
AL_PYTHON_BINDINGS=ONin the cmake configuration,--no-indexwas restricting pip to use dependencies from local folder, it was causing install error like below.Processing ./dist/imas_core-5.6.1.dev4-cp311-cp311-linux_x86_64.whl INFO: pip is looking at multiple versions of imas-core to determine which version is compatible with other requirements. This could take a while. ERROR: Could not find a version that satisfies the requirement numpy (from imas-core) (from versions: none) ERROR: No matching distribution found for numpy*Note : Tested it locally but need to confirm this behavior on all the platforms