-
-
Notifications
You must be signed in to change notification settings - Fork 529
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
isolated build env should ignore deps #1239
Comments
Although the error is kinda cryptic this works as expected. If you define deps at base level (testenv) you're expected to clear it for the isolated build env: [testenv:.package]
deps = Will work. |
So why can't tox do it automatically? |
We could... to be fair. Would make isolated build kinda special and not follow other env override logic, but I assume we already differ enough... |
Yeah, at least make it more obvious what's happening and maybe yell at |
https://github.com/tox-dev/tox/blob/master/src/tox/config/__init__.py#L1138 beside description we should probably also ignore deps (aka overwrite to an empty array) 👍Want to do a PR with a test?
|
Maybe, but not right now :) Trying to refactor packaging in another project... |
@gaborbernat after hitting pypa/pip#6264 (comment) I thought that maybe this env could also disable system-site-packages for isolated venv as well? |
Agreed. Though I would personally remove and banish that option entirely. I don't think it ever is a good idea to have it. |
What's the reason your project uses it @webknjaz? |
@gaborbernat the reason is that it uses libselinux python wrapper, which is not distributed via PyPI and linked against a lot of system things and only distributed via OS package managers meaning that it's either this or symlinking things into tox's venvs. It also speeds up some things when envs are heavy. It wasn't my idea but I couldn't come up with a better solution... I was trying to come up with a repackaging of selinux as manylinux1 wheels but it doesn't seem possible at all. |
I've done the fix yesterday and will release today 🤔 |
Nice, thanks! |
So it looks like when you combine
isolated_build = true
withdeps = -rrequirements.txt
in combines deps frompyproject.toml
anddeps
entries expecting that those would be direct dist specs and tries to parse them as such.Python 3.7.1 + tox 3.8.4.
The text was updated successfully, but these errors were encountered: