Joe Blow
Joe Blow

Reputation: 113

Add PYPI Package to Distribution

Just a heads up that this may be an obvious question. I'm writing a package that will be generally distributed and I don't want to have to do any support in the future (don't ask). It relies on python's standard library with one exception. If that one exception gets removed from PYPI in the future, I don't want to have to update my code.

So my question is: can I include the package I downloaded from PYPI within my package so it always exists in its current state and users don't have to download it separately? If so do I just move the package from my sys.path to my package?

Thank you, and sorry if it's an obvious question.

Upvotes: 0

Views: 66

Answers (1)

Alexander Ejbekov
Alexander Ejbekov

Reputation: 5940

In short - yes, you can. However it's not particularly necessary because pip supports specifying the needed version in the setup.py and it will take care of the installation of the package.

Upvotes: 1

Related Questions