Skip to content
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

Disable loading of site-packages for PEP 582 #104

Merged
merged 2 commits into from
Apr 11, 2020
Merged

Conversation

frostming
Copy link
Collaborator

@frostming frostming commented Apr 11, 2020

Pull Request Check List

  • A news fragment is added in news/ describing what is new.
  • Test cases added for changed code.

Describe what you have changed in this PR.

This PR injects a custom site.py into the packages dir to modify sys.path when python starts up.
It should work for both pdm run and executable shebang line.

Close #100

@frostming frostming merged commit 4cddba8 into master Apr 11, 2020
@frostming frostming deleted the feature/site-package branch April 11, 2020 14:47
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.

Option to exclude site-packages from python path
1 participant