Closed josyoun closed 2 years ago
We don't want to implement that directly as stated here ( subprocess.check_call([sys.executable, '-m', 'pip', 'install', '--user', wheel_file])
) because we don't want that to be the default. However, I'm glad that you note the workaround, and we'll look into passing through additional flags.
Yes, I completely agree this flag should not be hard coded. Mostly, I wanted to document the issue and potential work around for others. I think feature request for passing through the flags is the right option. Thanks for having a look!
This is implemented in development builds and should be available by default in near-future releases.
The --user
flag should be passed through as of the 3.3.0 release.
It looks like the install script (setup.py) strips and ignores the --user flag from pip. This is important for Gentoo installs as to not corrupt the system Python. Basically, I get the following:
That said, if I download the scripts by hand (AxiDraw_API_310r1) and modify setup.py to change:
to
Everything works fine. Basically, I believe this call needs to include any command line flags provided to pip, such as --user, for some systems like Gentoo to install properly.