Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (19.9k points)

I want to create a new PyPI package, but this will have an special wheels where I will invoke it like this:

pip install misoftware[customer1]

Is this possible?

If so how can I provide patches for [customer1]

For example my main release is:

misoftware==1.1 and

misoftware[customer1]

I want

misoftware[customer1]==1.1.2

This will be 3 wheels total

1 Answer

0 votes
by (25.1k points)

You're portraying setuptools 'additional items'. This enables you to determine extra conditions, so for instance 

misoftware just introduces the misoftware package 

misoftware[customer1] would introduce the misoftware package, in addition to some additional conditions 

The drawback is that the conditions you list in your additional items must be facilitated as packages themselves too on PyPI. So you'd have to make a misoftware_customer1 package, etc.

Related questions

0 votes
1 answer
asked Jan 21, 2021 in Python by ashely (50.2k points)
0 votes
1 answer
+1 vote
0 answers
asked Jul 9, 2019 in Python by selena (1.6k points)
0 votes
1 answer

Browse Categories

...