question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add an option to propagate `--always-copy` to `virtualenv`

See original GitHub issue

Some packages (sip from PyQt in my case), are installing some header files in the virtualenv, currently the include/ folder is symlinked to the system non-nt one, and so non writable.

The virtualenv script offers the --always-copy option (active by default on nt systems) to copy all the files.

The pew script by default forwards all the unknown arguments to virtualenv.

I have the local patch working because I’d like to use pipenv in my project.

NOTE: venv has a different argument, --symlinks / --copies, with the same use, but pew currently uses virtualenv.

  • add --always-copy option to pipenv install
  • add PIPENV_ALWAYS_COPY env var
  • add tests

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
naufraghicommented, Aug 3, 2018

Just to avoid some more search:

env VIRTUALENV_ALWAYS_COPY=1 pipenv install

now does the trick.

1reaction
lucidyancommented, Apr 6, 2020

If someone struggling with this nowadays, I found the bug in newer version of virtualenv. You should use alias instead of VIRTUALENV_ALWAYS_COPY:

env VIRTUALENV_COPIES=1 pipenv install

More information about flags here: https://virtualenv.pypa.io/en/latest/cli_interface.html#environment-variables

Virtualenv issue: https://github.com/pypa/virtualenv/issues/1761

Read more comments on GitHub >

github_iconTop Results From Across the Web

virtualenv - Read the Docs
virtualenv is a tool to create isolated Python environments. The basic problem being addressed is one of dependencies and versions, and indirectly ...
Read more >
venv — Creation of virtual environments — Python 3.11.1 ...
A virtual environment is created on top of an existing Python installation, known as the virtual environment's “base” Python, and may optionally be...
Read more >
Reference Guide — virtualenv 16.7.11 documentation
virtualenv [OPTIONS] ENV_DIR. Where ENV_DIR is an absolute or relative path to a directory to create the virtual environment in.
Read more >
Python Tools for Managing Virtual Environments
This article describes and demonstrates a few. How to use this guide; venv. Activate the virtual environment; Execute Python scripts ...
Read more >
The error was importerror no module named openssl - Impugno
Feb 12, 2014 · Virtualenv: Breakage in --always-copy - fails with: ... SSL Module Error After Install Python if we can't import it,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found