Comments (3)
My understanding is global
commands are just like you use the global pip
or python
, adding dependency resolution and tracking. Executables are run like before, assuming you have added the bin path to PATH
.
However, pipx
is for isolated installation, so that the package won't mix with global space. Although you can achieve the same thing by initialize a project, install dependencies, and link the executable at __packages__/X.Y/bin
to PATH
, there are still more actions than pipx
to do. So I recommend using pipx
directly.
from pdm.
Well, and the command shows the path of the global-project
folder.
from pdm.
In fact, I have thought a lot about this again. Should we add a run
command?
Suppose we add a global package which installs a script/executable file, should we always use pdm run exe
to run it? Or we should only install/link it to $PDM.D/bin/
?
This may be another feature comes with the global-project
that can be used instead of pipx
.
from pdm.
Related Issues (20)
- Composite script with multiple invocations triggers recursive script error HOT 2
- pdm init failed with packaging.version.InvalidVersion HOT 2
- Different indexes for different groups HOT 5
- PDM chooses newest pyzmq package version even when its distribution is not available for Windows HOT 1
- Command completion scripts produces output when a new version is available (at least on oh-my-zsh)
- PDM Docs: Generating a Sphinx-style Python object inventory (to allow reST cross-references from Sphinx-based documentation) HOT 2
- Consider building wheel from sdist to ensure a proper sdist is created.
- Issue with Encoding Conversion When Running install-pdm.py Script via PowerShell
- PDM can't install packages offline HOT 16
- OS Specific Scripts HOT 5
- ENV is not inherited in nested composite scripts
- The external virtualenv is switched HOT 1
- pdm lock --update-reuse expands the $PROJECT_ROOT variable when extra dependencies are included
- Inconsistent behaviour of `pdm add` in mode direct_minimal_versions HOT 5
- Add docs about VIRTUAL_ENV. HOT 3
- pdm update failing on shapely HOT 1
- 使用 Dockerfile 构建项目出现权限问题 HOT 6
- Installing PDM fails on windows HOT 6
- pyproject.toml better management idea HOT 10
- Sync package version between `dependencies` and `build-system.requires` HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pdm.