Closed ntouran closed 6 months ago
Upgrading pip to 23.3.2 works!
python -m pip install --upgrade pip
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.
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 3.9.7
and pip==22.1
):
$ 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 pip==23.3.1
, because we run this tox.ini
file on GitHub CI every day:
https://github.com/terrapower/armi/blob/f6e1c78d1ed4b3a061ca8f633d47be8cb11c58ca/tox.ini#L12-L14
in our GitHub "unittest" workflow:
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.
What version of Python were you using when the above failure occurred?
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 pip install -e .[test]
breaks there.
Changing it to pip install -e ".[test]"
works for zsh, bash and sh.
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:
https://github.com/terrapower/armi/blob/0668e8ca1f52c67dc7074c25a0723e1073ddce4d/doc/user/user_install.rst?plain=1#L86-L90
But if you do this, you get an error:
I am using
pip==22.0.2
.