Skip to content

Conversation

@hannesdelbeke
Copy link
Owner

this PR adds the ability to see local installed packages.
e.g. modules in the user addons folder

this relies on Blender taking care of the sys.path setup, avoiding any bugs with trying to recreate this logic ourselves.
we then add every path to PYTHONPATH, which is passed to the subprocess. giving pip access to the custom paths from the Blender session.
also removed some unused imports, and some site code that AFAIK is not used anywhere.

mirror PR on original repo amb#11

we add some paths to sys.path, but sys.paths won't get passed to subprocess
default included in blender for good reason
C:\\Users\\user\\AppData\\Roaming\\Python\\Python310\\site-packages
points to py packages outside of blender, could cause clashes
now pip list also shows packages installed to e.g. the addons folder
@hannesdelbeke hannesdelbeke force-pushed the pass-ENV-pythonpaths-to-pip branch from deef76b to 6ae163c Compare May 22, 2023 17:37
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