pipenv
help documentation writes:
Install a local setup.py into your virtual environment/Pipfile:
$ pipenv install -e .
Can someone further elaborate when and how to use the command pipenv install -e .
in relation to setup.py
?
According to pipenv
, -e .
refers to editable dependencies. However, I am unable to understand the given explanation. Can someone explain this?
Edit:
For example, after I had created a simple distro package call mypkg
in my --user
directory in pip
, i.e.~/mypkg
, using commands:
$ pipenv shell
(mypkg-x985xH5M) $ python3 setup.py sdist bdist_wheel
(mypkg-x985xH5M) $ twine upload --repository-url https://test.pypi.org/legacy/ dist/*
and /mypkg
and has the following file structure:
/mypkg
|_ LICENSE
|_ README.md
|_ setup.py
|_ /mypkg
| |_ __init__.py
| |_ mypkg.py
|_ /dist
| |_ mypkg-0.0.1rc1.tar.gz
| |_ mypkg-0.0.1rc1-py3-none-any.whl
|_ /build
| |_ /bdist.linux-x86_64
| |_ /lib
| |_ /mypkg
| |_ __init__.py
| |_ mypkg.py
|_ /mypkg.egg-info
|_ dependency_links.txt
|_ entry_points.txt
|_ PKG-INFO
|_ SOURCES.txt
|_ top_level.txt
what does the command $ pipenv install -e .
do?