Skip to content

Instantly share code, notes, and snippets.

@exarkun
Created August 15, 2019 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save exarkun/2d8190214966f3a55838cd29da1af9ad to your computer and use it in GitHub Desktop.
Save exarkun/2d8190214966f3a55838cd29da1af9ad to your computer and use it in GitHub Desktop.
[exarkun@baryon:~/Work/PrivateStorage/SecureAccessTokenAuthorizer]$ nix-shell default.nix
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Obtaining file:///home/exarkun/Work/PrivateStorage/SecureAccessTokenAuthorizer
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Installing collected packages: Zero-Knowledge-Access-Pass-Authorizer
Running setup.py develop for Zero-Knowledge-Access-Pass-Authorizer
Complete output from command /nix/store/9kigl3bk51mfn0484y72w3zlm7d8ws76-python-2.7.16/bin/python2.7 -c "import setuptools, tokenize;__file__='/home/exarkun/Work/PrivateStorage/SecureAccessTokenAuthorizer/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps --prefix=/run/user/1000/tmp.g6i8gfN7RN:
running develop
Checking .pth file support in /run/user/1000/tmp.g6i8gfN7RN/lib/python2.7/site-packages
/nix/store/9kigl3bk51mfn0484y72w3zlm7d8ws76-python-2.7.16/bin/python2.7 -E -c pass
TEST FAILED: /run/user/1000/tmp.g6i8gfN7RN/lib/python2.7/site-packages does NOT support .pth files
error: bad install directory or PYTHONPATH
You are attempting to install a package to a directory that is not
on PYTHONPATH and which Python does not read ".pth" files from. The
installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/run/user/1000/tmp.g6i8gfN7RN/lib/python2.7/site-packages
and your PYTHONPATH environment variable currently contains:
'/run/user/1000/pip-build-env-uGdfNK/site'
Here are some of your options for correcting the problem:
* You can choose a different installation directory, i.e., one that is
on PYTHONPATH or supports .pth files
* You can add the installation directory to the PYTHONPATH environment
variable. (It must then also be on PYTHONPATH whenever you run
Python and want to use the package(s) you are installing.)
* You can set up the installation directory to support ".pth" files by
using one of the approaches described here:
https://setuptools.readthedocs.io/en/latest/easy_install.html#custom-installation-locations
Please make the appropriate changes for your system and try again.
----------------------------------------
Command "/nix/store/9kigl3bk51mfn0484y72w3zlm7d8ws76-python-2.7.16/bin/python2.7 -c "import setuptools, tokenize;__file__='/home/exarkun/Work/PrivateStorage/SecureAccessTokenAuthorizer/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" develop --no-deps --prefix=/run/user/1000/tmp.g6i8gfN7RN" failed with error code 1 in /home/exarkun/Work/PrivateStorage/SecureAccessTokenAuthorizer/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment