Reputation: 383
I have a package called mypygeopack, which has lots of dependencies. I wanted to know if I can create a small package using extras:
pip install mypygeopack[tiny]
which will install a stripped down version of the package with only 1-2 dependencies instead of the 4-5.
Thanks
Upvotes: 3
Views: 397
Reputation: 556
possibly this would work:
pip install --no-deps <package>
pip install -r minimal_requirements.txt // this has the minimal requirements not all.
Upvotes: 0
Reputation: 22295
No, you can't. Extras can only add things, not remove.
It is a question that comes up regularly. People have discussed about it, but as far as I know, nothing concrete came out of those discussions yet:
Upvotes: 2