indygreg / indygreg/PyOxidizer
psutil setup-py-install fails
- Dominant language
- Rust
- Stars
- 6.2k
- Forks
- 256
- PR merge metrics
- No merged PRs in 30d
Description
I am trying to build a simple tool to get current running processes that needs to be cross platform, so being able to compile using rust is great! However psutil firstly fails due to it's use of `__file__`, I tried working around this with just manually putting in the path in setup.py, but then I hit the same issue as #70 I have taken the latest files and it still throws the same error, can you help at all?
```
TEST FAILED: C:\Users\\AppData\Local\Temp\pyoxidizer-setup-py-install.pbGDLOr8ifgz\install\Lib\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:
C:\Users\\AppData\Local\Temp\pyoxidizer-setup-py-install.pbGDLOr8ifgz\install\Lib\site-packages\
and your PYTHONPATH environment variable currently contains:
'C:\\Users\\\\AppData\\Local\\Temp\\pyoxidizer-setup-py-install.pbGDLOr8ifgz\\packages'
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.
thread 'main' panicked at 'error running setup.py', C:\Users\\.cargo\registry\src\github.com-1ecc6299db9ec823\pyoxidizer-0.2.0\src\pyrepackager\packaging_rule.rs:1061:9
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the reported setup.py installation path and the failure at pyrepackager/packaging_rule.rs:1061, then compare the behavior with issue #70. Reproduce the Windows build using the shown PyOxidizer setup and verify that psutil installs without the .pth-file or bad-install-directory error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, rust
- Domain
- build-system, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100