Replies: 1 comment
-
As you likely discovered, when specifying packages at the command line to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If I have a developer tool
cheddar
, a Python package, and I want to install it as a development rather than a runtime dependency, do I use the option--dev
to accomplish that? In other words, ispipenv install --dev cheddar
the correct way to install dev packages?
I ask because the documentation does not seem to say that. The pipenv install documentation says,
I am guessing that correctly describes the behaviour of
pipenv install --dev
without a package name.But from my tests, if I include a package name, then the package gets installed and listed in the
[dev-packages]
section ofPipfile
. That is,pipenv install --dev cheddar
does not "Install bothdevelop
anddefault
packages from Pipfile."If this use of
--dev
is correct, then I think it would be clearer for that line to say,(Also, I don't see where the terms "default packages" and "develop packages" are defined. The advanced topics mention them as "dependencies", which I think is a better term. I think "default dependencies" are required to run the app, and are listed in the
[packages]
section of the Pipfile; while "development dependencies" are require to develop and build the app but not to run it, so do not need to be distributed to end users of the app. Maybe "runtime" is better than "default" here?)(Also, the pipenv install documentation does not seem to say that
pipenv install
with no package names and no--dev
option will install the default dependencies from the Pipfile.)Beta Was this translation helpful? Give feedback.
All reactions