In Node.js, I'm used to using npm link
to get a project to use a custom version of a dependency. From the Node documentation:
First,
npm link
in a package folder will create a globally-installed symbolic link fromprefix/package-name
to the current folder.Next, in some other location,
npm link package-name
will create a symlink from the localnode_modules
folder to the global symlink.
Is it kosher to do something similar by symlinking into site-packages?
I've found a very good equivalent for npm, It's called pipenv. It handles both virtualenv and pip requirements at the same time so it's more like npm.
Note that the equivalent of npm package. json is the PipFile file!
It is the package installer for Python. You can use pip to install packages from the Python Package Index and other indexes. npm and pip can be categorized as "Front End Package Manager" tools. npm is an open source tool with 17.2K GitHub stars and 3.17K GitHub forks.
npm allows installing packages globally or local to a project. In pip , all packages are installed globally. To separate the local dependencies from system-wide packages, a virtual environment is created which contains all the dependencies local to the project and even a local Python distribution.
The exact analogue is pip install -e .
or python setup.py develop
.
https://pip.pypa.io/en/latest/reference/pip_install.html#editable-installs
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With