Skip to content

Is it possible for extras to not contain the install_requires ? #2843

Answered by jaraco
tchaton asked this question in Q&A
Discussion options

You must be logged in to vote

An extra named "" gets treated as an "install_requirement" (installed in all cases). That's mainly because of the syntax of requirements and the fact that Setuptools historically allowed for empty extras to be used for environment-markers. e.g.:

extras_require = {
    '; python_version<"2.7"': ['py26req'],
}

There are open feature requests to provide a "default extras" (#1139), which I believe is what you want, but that feature doesn't exist yet.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@webknjaz
Comment options

@tchaton
Comment options

@Borda
Comment options

@webknjaz
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by jaraco
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants