Skip to content

Add the possibility to follow symlinks on copytree also for py3 #1329

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

Closed
wants to merge 4 commits into from
Closed

Add the possibility to follow symlinks on copytree also for py3 #1329

wants to merge 4 commits into from

Conversation

alquerci
Copy link

Hello,

Reply to #1311

It's an answer of https://github.com/pypa/pip/pull/1311/files#r7640350

If a project contains true NTFS symlinks it require elevated privileges indeed (source: @docs.python: os.symlink and @wikipedia: NTFS_symbolic_link)

  • Fix shutil.copytree for py3 when a symlink points to a directory
  • Prevent circular symbolic links
  • Add test with circular symbolic links
  • revert f579c17

It should be also update tests.lib.path.Path.copytree method (e.g. git revert 99a4f6f) but it will add a dependency to pip.util module.

All comments are welcome

@alquerci
Copy link
Author

alquerci commented Nov 3, 2014

rebase done

The commit history should be clean up after the review.

@dstufft dstufft closed this May 18, 2016
@dstufft
Copy link
Member

dstufft commented May 18, 2016

Accidentally closed this, reopening. Sorry!

@dstufft dstufft reopened this May 18, 2016
@BrownTruck
Copy link
Contributor

Hello!

As part of an effort to ease the contribution process and adopt a more standard workflow pip has switched to doing development on the master branch. However, this Pull Request was made against the develop branch so it will need to be resubmitted against master. Unfortunately, this pull request does not cleanly merge against the current master branch.

If you do nothing, this Pull Request will be automatically closed by @BrownTruck since it cannot be merged.

If this pull request is still valid, please rebase it against master (or merge master into it) and resubmit it against the master branch, closing and referencing the original Pull Request.

If you choose to rebase/merge and resubmit this Pull Request, here is an example message that you can copy and paste:

Hello,

Reply to #1311

It's an answer of https://github.com/pypa/pip/pull/1311/files#r7640350

If a project contains true NTFS symlinks it require elevated privileges indeed (source: @docs.python: os.symlink and @wikipedia: NTFS_symbolic_link)



 Fix shutil.copytree for py3 when a symlink points to a directory

 Prevent circular symbolic links

 Add test with circular symbolic links

 revert pypa/pip@f579c17



It should be also update tests.lib.path.Path.copytree method (e.g. git revert pypa/pip@99a4f6f) but it will add a dependency to pip.util module.

All comments are welcome

---

*This was migrated from pypa/pip#1329 to reparent it to the ``master`` branch. Please see original pull request for any previous discussion.*

@alquerci
Copy link
Author

Closing in favor of #3707

@alquerci alquerci closed this May 20, 2016
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 3, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 3, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants