Skip to content

Instantly share code, notes, and snippets.

@chrismeyersfsu
Created August 25, 2015 14:14
Show Gist options
  • Save chrismeyersfsu/709a80df91176bc9f7bc to your computer and use it in GitHub Desktop.
Save chrismeyersfsu/709a80df91176bc9f7bc to your computer and use it in GitHub Desktop.
pip install-option install-purelib
[root@77ccf2c18f3b tmp]# DISTUTILS_DEBUG=1 pip install -t /tmp/install_here --install-option="--install-purelib=$base/lib64/python" psutil
You are using pip version 7.1.0, however version 7.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
/usr/lib/python2.7/site-packages/pip/commands/install.py:206: UserWarning: Disabling all use of wheels due to the use of --build-options / --global-options / --install-options.
cmdoptions.check_install_build_global(options)
Collecting psutil
/usr/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Using cached psutil-3.1.1.tar.gz
Installing collected packages: psutil
Running setup.py install for psutil
Successfully installed psutil
pre-finalize_{unix,other}:
prefix: None
exec_prefix: None
home: /tmp/tmpft3Nwm
user: 0
install_base: None
install_platbase: None
root: None
install_purelib: None
install_platlib: None
install_lib: None
install_headers: None
install_scripts: None
install_data: None
compile: None
compile: True
optimize: None
force: None
skip_build: 0
record: None
old_and_unmanageable: None
single_version_externally_managed: None
post-finalize_{unix,other}():
prefix: None
exec_prefix: None
home: /tmp/tmpft3Nwm
user: 0
install_base: /tmp/tmpft3Nwm
install_platbase: /tmp/tmpft3Nwm
root: None
install_purelib: $base/lib/python
install_platlib: $base/lib64/python
install_lib: None
install_headers: $base/include/python/$dist_name
install_scripts: $base/bin
install_data: $base
compile: None
compile: True
optimize: None
force: None
skip_build: 0
record: None
old_and_unmanageable: None
single_version_externally_managed: None
post-expand_basedirs():
prefix: None
exec_prefix: None
home: /tmp/tmpft3Nwm
user: 0
install_base: /tmp/tmpft3Nwm
install_platbase: /tmp/tmpft3Nwm
root: None
install_purelib: $base/lib/python
install_platlib: $base/lib64/python
install_lib: None
install_headers: $base/include/python/$dist_name
install_scripts: $base/bin
install_data: $base
compile: None
compile: True
optimize: None
force: None
skip_build: 0
record: None
old_and_unmanageable: None
single_version_externally_managed: None
config vars:
{'base': '/tmp/tmpft3Nwm',
'dist_fullname': 'UNKNOWN-0.0.0',
'dist_name': 'UNKNOWN',
'dist_version': '0.0.0',
'exec_prefix': '/usr',
'platbase': '/tmp/tmpft3Nwm',
'prefix': '/usr',
'py_version': '2.7.5',
'py_version_nodot': '27',
'py_version_short': '2.7',
'sys_exec_prefix': '/usr',
'sys_prefix': '/usr',
'userbase': '/root/.local',
'usersite': '/root/.local/lib/python2.7/site-packages'}
post-expand_dirs():
prefix: None
exec_prefix: None
home: /tmp/tmpft3Nwm
user: 0
install_base: /tmp/tmpft3Nwm
install_platbase: /tmp/tmpft3Nwm
root: None
install_purelib: /tmp/tmpft3Nwm/lib/python
install_platlib: /tmp/tmpft3Nwm/lib64/python
install_lib: None
install_headers: /tmp/tmpft3Nwm/include/python/UNKNOWN
install_scripts: /tmp/tmpft3Nwm/bin
install_data: /tmp/tmpft3Nwm
compile: None
compile: True
optimize: None
force: None
skip_build: 0
record: None
old_and_unmanageable: None
single_version_externally_managed: None
after prepending root:
prefix: None
exec_prefix: None
home: /tmp/tmpft3Nwm
user: 0
install_base: /tmp/tmpft3Nwm
install_platbase: /tmp/tmpft3Nwm
root: None
install_purelib: /tmp/tmpft3Nwm/lib/python
install_platlib: /tmp/tmpft3Nwm/lib64/python
install_lib: /tmp/tmpft3Nwm/lib/python/
install_headers: /tmp/tmpft3Nwm/include/python/UNKNOWN
install_scripts: /tmp/tmpft3Nwm/bin
install_data: /tmp/tmpft3Nwm
compile: None
compile: True
optimize: None
force: None
skip_build: 0
record: None
old_and_unmanageable: None
single_version_externally_managed: None
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/pip/basecommand.py", line 223, in main
status = self.run(options, args)
File "/usr/lib/python2.7/site-packages/pip/commands/install.py", line 348, in run
for item in os.listdir(lib_dir):
OSError: [Errno 2] No such file or directory: '/tmp/tmpft3Nwm/lib/python/'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment