-
Notifications
You must be signed in to change notification settings - Fork 185
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
Incompatible with virtualenv v20 #293
Comments
The recommendation is to use Still, the deprecated option should be removed. |
@jhermann on Debian the |
Well, the general direction is to use venv with 3.4+ projects. And a [Build-]Depends belongs into YOUR control file, as soon as you use the venv option. |
Now, the v20 is going to cause issues to people once that starts rolling out to people's systems. Solution here would probably just dropping the |
Interesting. When we switched over to the built in venv with |
@danpalmer add |
Thanks, we've actually pinned |
@danpalmer So the notation for |
Situation regarding relevant options: $ virtualenv --help
…
--setuptools DEPRECATED. Retained only for backward compatibility. This option has no effect.
--distribute DEPRECATED. Retained only for backward compatibility. This option has no effect.
--unzip-setuptools DEPRECATED. Retained only for backward compatibility. This option has no effect.
$ virtualenv --version
16.7.9
$ virtualenv --help
…
--pip version pip version to install, bundle for bundled (default: latest)
--setuptools version setuptools version to install, bundle for bundled (default: latest)
--wheel version wheel version to install, bundle for bundled (default: latest)
$ virtualenv --version
virtualenv 20.0.4 So I'd recommend against using the new options, we have |
The ultimate quick-fix solution is to remove Or else just use builtin venv if you can. Proper fix:
|
Same issue here running on Ubuntu 18.04.4 LTS, I have tried to use buildin venv by installing My proposal is to check the version of virtualenv and then decide whether to append |
You saying that it is better to use --builtin-venv. I've switched to it from --with python-virtualenv but now I see that my package.deb file is too small(5Kb) and after installation, it doesn't create a new folder in the venvs folder in my system(Ubuntu 18.04), Did I miss something? Do I need to run python -m venv manually somewhere to add venv to package_name.deb file?? Can you help me? Probably I have to use it in pair like the following version? [debian/rules]
|
Hi,
You need both flags: --with python-virtualenv and the --builtin-venv
First one tells dh to use dh-virtualenv for packaging and seconds is an
argument to dh-virtualenv
On Wed 16. Mar 2022 at 12.48, vladislavkoz ***@***.***> wrote:
The recommendation is to use --builtin-venv by now, unless you dabble
with old stuff. That avoids the problem altogether.
Still, the deprecated option should be removed.
You saying that it is better to use --builtin-venv. I've switched to it
from --with python-virtualenv but now I see that my package.deb file is too
small(5Kb) and after installation, it doesn't create a new folder in the
*venvs* folder in my system(Ubuntu 18.04), Do I miss something? Did I
miss something? Do I need to run *python -m venv* manually somewhere to
add venv to package_name.deb file?? Can you help me?
—
Reply to this email directly, view it on GitHub
<#293 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAPRSE44FARCHED4YXUQPDVAG37TANCNFSM4KSL5PPQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.Message ID:
***@***.***>
--
- Jyrki
|
Yes, thanks. You are absolutely right |
Virtualenv has just released version 20, which breaks compatibility with dh-virtualenv.
Specifically, dh-virtualenv still passes the
--no-site-packages
option which has been deprecated for a while now. v20 now rejects this argument.There may be other issues as well, but this one was what we noticed first so we've reverted to v16, the previous release. v20 is a full rewrite so more testing may be required.
The text was updated successfully, but these errors were encountered: