You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the issue tracker and believe that this is not a duplicate.
Steps to reproduce
[frafra@e32 tmp.zSys4BFrls]$ pdm init
Creating a pyproject.toml for PDM...
Please enter the Python interpreter to use
0. /usr/bin/python (3.9)
1. /usr/bin/python3 (3.9)
2. /usr/bin/python3.9 (3.9)
3. /usr/bin/python3.8 (3.8)
4. /usr/bin/python3.7 (3.7)
5. /usr/bin/python3.7m (3.7)
6. /usr/bin/pypy3 (3.6)
7. /usr/bin/pypy3.6 (3.6)
8. /usr/bin/python3.5m (3.5)
9. /usr/bin/python3.5 (3.5)
10. /usr/bin/python3.4m (3.4)
11. /usr/bin/python3.4 (3.4)
12. /usr/bin/python2 (2.7)
13. /usr/bin/python2.7 (2.7)
14. /usr/bin/pypy2.7 (2.7)
15. /usr/bin/pypy2 (2.7)
16. /usr/bin/pypy (2.7)
17. /home/frafra/.local/pipx/venvs/pdm/bin/python (3.9)
Please select: [0]:
Using Python interpreter: /usr/bin/python (3.9)
Is the project a library that will be uploaded to PyPI? [y/N]:
License(SPDX name) [MIT]:
Author name [Francesco Frassinelli]:
Author email [fraph24@gmail.com]:
Python requires('*' to allow any) [>=3.9]:
Changes are written to pyproject.toml.
[frafra@e32 tmp.zSys4BFrls]$ pdm add uwsgi
Adding packages to default dependencies: uwsgi
✔ 🔒 Lock successful
Changes are written to pdm.lock.
Changes are written to pyproject.toml.
Synchronizing working set with lock file: 1 to add, 0 to update, 0 to remove
✔ Install uwsgi 2.0.19.1 successful
🎉 All complete!
[frafra@e32 tmp.zSys4BFrls]$ pdm run uwsgi
[PdmUsageError]: Command 'uwsgi' is not found on your PATH.
[frafra@e32 tmp.zSys4BFrls]$ file $(pdm info --packages)/bin/uwsgi
/tmp/tmp.zSys4BFrls/__pypackages__/3.9/bin/uwsgi: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=14e74c627975285d489e98c08dc77591fd6f41d6, for GNU/Linux 3.2.0, with debug_info, not stripped
[frafra@e32 tmp.zSys4BFrls]$ $(pdm info --packages)/bin/uwsgi
bash: /tmp/tmp.zSys4BFrls/__pypackages__/3.9/bin/uwsgi: Permission denied
[frafra@e32 tmp.zSys4BFrls]$ ls -l $(pdm info --packages)/bin/uwsgi
-rw-rw-r-- 1 frafra frafra 1282056 Aug 18 22:33 /tmp/tmp.zSys4BFrls/__pypackages__/3.9/bin/uwsgi
[frafra@e32 tmp.zSys4BFrls]$ chmod +x $(pdm info --packages)/bin/uwsgi
[frafra@e32 tmp.zSys4BFrls]$ $(pdm info --packages)/bin/uwsgi
*** Starting uWSGI 2.0.19.1 (64bit) on [Wed Aug 18 22:37:39 2021] ***
compiled with version: 11.2.1 20210728 (Red Hat 11.2.1-1) on 18 August 2021 20:19:16
os: Linux-5.13.8-200.fc34.x86_64 #1 SMP Wed Aug 4 19:59:54 UTC 2021
[...]
Actual behavior
uwsgi is not executable.
Expected behavior
How do I run CLI scripts in the local package directory?
The recommended way is to prefix your command with pdm run. It is also possible to run CLI scripts directly from the outside. PDM's installer has already injected the package path to the sys.path in the entry script file.
-- README.md
Python classic virtual environment set uwsgi to executable.
Environment Information
# Paste the output of `pdm info && pdm info --env` below:
PDM version: 1.8.0
Python Interpreter: /usr/bin/python (3.9)
Project Root: /tmp/tmp.zSys4BFrls
Project Packages: /tmp/tmp.zSys4BFrls/__pypackages__/3.9
{
"implementation_name": "cpython",
"implementation_version": "3.9.6",
"os_name": "posix",
"platform_machine": "x86_64",
"platform_release": "5.13.8-200.fc34.x86_64",
"platform_system": "Linux",
"platform_version": "#1 SMP Wed Aug 4 19:59:54 UTC 2021",
"python_full_version": "3.9.6",
"platform_python_implementation": "CPython",
"python_version": "3.9",
"sys_platform": "linux"
}
The text was updated successfully, but these errors were encountered:
Steps to reproduce
Actual behavior
uwsgi is not executable.
Expected behavior
-- README.md
Python classic virtual environment set uwsgi to executable.
Environment Information
The text was updated successfully, but these errors were encountered: