easy_install installation location not controlled by --prefix
See original GitHub issueHi, Spack developer here.
One of our users noticed that when setuptools
is installed, it tries to install its easy_install.py
file to the site-packages
directory of the Python installation, even though we explicitly provide an alternate --prefix
to install to. This is particularly a problem for users who use a system Python with Spack that they don’t have install permissions to. Is there some other way to tell easy_install.py
where to install to besides the --prefix
option of setup.py install
? See https://github.com/spack/spack/issues/13738 and https://github.com/spack/spack/issues/13955 for the original issues.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:13 (5 by maintainers)
Top Results From Across the Web
Easy_install's --prefix option doesn't change where it tries to ...
A user configuration file, ~/.pydistutils.cfg, will override the internal system path for python package installations, redirecting the built libraries (lib), ...
Read more >Easy Install - setuptools 65.6.3.post20221220 documentation
Easy Install is a python module ( easy_install ) bundled with setuptools that lets you automatically download, build, install, and manage Python packages....
Read more >easy_install.py - Python.org
_expand('install_dir','script_dir','build_directory','site_dirs') # If a non-default installation directory was specified, default the # script directory to ...
Read more >1664722 – Latest release breaks easy_install - Red Hat Bugzilla
It expects to use a directory /usr/local/lib/python36 which does not exist ... The installation directory you specified (via --install-dir, --prefix, ...
Read more >setuptools 3.5.2 - PyPI
Advanced Installation. For more advanced installation options, such as installing to custom locations or prefixes, download and extract the source tarball from ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@adamjstewart @LDAmorim @ax3l, please also notice that using
python -s
might be problematic. The current version of setuptools rely on a.pth
file to load the correct version of distutils. This is required during the transition period while distutils is deprecated and scheduled to be removed from the stdlib (i.e. will be necessary until the EoL of 3.11).Getting back to the original issue, @LDAmorim @ax3l can you try to reproduce this with the tip of develop in Spack? If you can’t reproduce the issue anymore then I’m guessing this has been fixed (either in setuptools or in Spack).