[BUG] Running with --prefix leads to expected str, bytes or os.PathLike object, not NoneType
#4966
Labels
expected str, bytes or os.PathLike object, not NoneType
#4966
setuptools version
80.0.0
Python version
3.12
OS
Ubuntu 22.04
Additional environment information
No response
Description
Using
python setup.py develop
with--prefix
results in an error:TypeError: expected str, bytes or os.PathLike object, not NoneType
Due to https://github.com/pypa/setuptools/blob/main/setuptools/command/develop.py#L37
+ ['--index-url', self.index_url] * bool(self.prefix)
resolves to ['--index-url', None]Expected behavior
python setup.py develop --prefix ~/.local
should not crashHow to Reproduce
Run
python setup.py develop --prefix ~/.local
with setuptools==80 on a repo that is using setuptools, such as https://github.com/ROCm/vllmOutput
The text was updated successfully, but these errors were encountered: