Skip to content

Fix --always-copy #511

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

Merged
merged 4 commits into from
Dec 6, 2013
Merged

Fix --always-copy #511

merged 4 commits into from
Dec 6, 2013

Conversation

qwcode
Copy link

@qwcode qwcode commented Dec 6, 2013

a slight makeover of PR #496 for fixing #495

It fixes the 3rd commit from #496: vldmit@ec05a4e. that was mistakenly using copyfileordir, instead of copyfile.

Despite some confusion in the conversation in #496, the idea of the 3rd commit was necessary to make the --always-copy work correctly for the "posix_local" scheme (which e.g. travis uses for py27 tests. to the see the failure w/o this change, see https://travis-ci.org/pypa/virtualenv/jobs/15023174 )

also, made some tweaks to the test.

1) let it run for windows;  should be harmless
2) confirm files and dirs are not links
3) create the tmp venvs in a *new* directory
4) if a symlink is found, report what it's linked to
2) copyfile(symlink=True) is a suitable replacement for os.symlink
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants