-
Notifications
You must be signed in to change notification settings - Fork 361
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow disabling of pip installations in setup.py #1128
Comments
Hi @ocaisa! Thanks for letting us know your problem. |
On our systems we want full knowledge and full control over what is getting installed and where it is being installed. A typical pip command using the tool that we use (EasyBuild) looks like:
For a package like qiskit-aer we would bundle together the dependencies required with it (unless they can be provided by another environment module), installing them individually in the required sequence. Your current approach installs additional python packages with indeterminate versions into the prefix where
and also means our What we would like is the ability to switch off this dependency installation behaviour, this will trigger a failure in our build system when our sanity checks are run (if a dependency is missing), which is fine since we can solve that ourselves and repeat the process as necessary. |
The same problem of using pip inside setup.py can also be found in |
What is the expected behavior?
Currently setup.py is quite aggressive in installing dependencies (see https://github.com/Qiskit/qiskit-aer/blob/master/setup.py#L25). This leads to unexpected behaviour on HPC systems where Qiskit is being installed as an environment module (i.e., self-contained) as it installs these dependencies for the current
python
, which in our case is in another environment module. This makes our Python installation non-reproducible, and the Qiskit module broken if another Python environment module is used. It should be possible to disable this behaviour since it can have severe unintended consequences.The text was updated successfully, but these errors were encountered: