-
Notifications
You must be signed in to change notification settings - Fork 90
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
ARMI cannot be installed in editable mode with pip<22.1 #1639
Comments
Hmm, according to this, we may need to require setuptools 64 |
Upgrading pip to 23.3.2 works!
We should reflect this somewhere in the setup docs I guess. |
The other thing we can do is just add a stub setup.py or setup.cfg which will restore the old behavior. I'll make a PR. |
In order to run: pip install -e .[docs,tests] We found that you either need to add a stub setup.py like this or be using a very recent version of pip. In order to streamline the installation process on more machines with a relaxed pip version constraint, this stub is added. Fixes terrapower#1639.
In order to run: pip install -e .[docs,tests] We found that you either need to add a stub setup.py like this or be using a very recent version of pip. In order to streamline the installation process on more machines with a relaxed pip version constraint, this stub is added. Fixes terrapower#1639.
In order to run: pip install -e .[docs,tests] We found that you either need to add a stub setup.py like this or be using a very recent version of pip. In order to streamline the installation process on more machines with a relaxed pip version constraint, this stub is added. Fixes terrapower#1639.
If we really don't want it at all for some reason, then we need to update our documentation and build process to avoid this error for users. How would you prefer to solve the error shown above? |
So, I can't reproduce this bug locally ( $ python --version
Python 3.9.7
$ python -m pip --version
pip 22.1 from \\path\to\venv\lib\site-packages\pip (python 3.9)
$
$ pip install -e .[test]
Looking in indexes: https://devwebsvc1.tp.int/pypi
Obtaining file:///C:/Users/jstilley/codes/repos/armi
...
Successfully built armi
Installing collected packages: armi
Attempting uninstall: armi
Found existing installation: armi 0.2.8
Uninstalling armi-0.2.8:
Successfully uninstalled armi-0.2.8
Successfully installed armi-0.3.0 However, I think we can prove that this works for Lines 12 to 14 in f6e1c78
in our GitHub "unittest" workflow: armi/.github/workflows/unittests.yaml Lines 31 to 32 in f6e1c78
And that workflow runs on all commits and PRs fine, for all versions of Python, but with a recent version of pip. So, before I update the docs, I'd like to be able to reproduce your bug so I can add the write info in the docs.
|
Hi there! Unable to reproduce this as well. By the way, I'd like to suggest using quotes in such commands across the documentation, for shell portability. Square brackets have special meanings in zsh so |
Installation instructions for editable install not working: Since it does not have a
setup.py
nor asetup.cfg
, it cannot be installed in editable mode.Docs say:
armi/doc/user/user_install.rst
Lines 86 to 90 in 0668e8c
But if you do this, you get an error:
I am using
pip==22.0.2
.The text was updated successfully, but these errors were encountered: