-
Notifications
You must be signed in to change notification settings - Fork 1.1k
pyinstaller support added to PipEnv #19030
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
pyinstaller support added to PipEnv #19030
Conversation
237122f to
0501a01
Compare
0501a01 to
57efa02
Compare
conan/tools/system/pip_manager.py
Outdated
| def _create_venv(self): | ||
| python_interpreter = self._conanfile.conf.get( | ||
| "tools.system.pipenv:python_interpreter", | ||
| default=shutil.which('python') if platform.system() == "Windows" else shutil.which('python3')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the shutil.which() default to find the current interpreter if we are running in a venv already? Or it finds it directly in the system?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the one inside the virtualenv. But it's a python that's only used during recipe execution. Every time you run it, it's a new environment. In any case, I'm going to add that it gets the real path because in virtualenv python is a symlink.
807d1d9 to
aa63728
Compare
3c45c5a to
4a1d10e
Compare
Changelog: Fix: Improved Python virtual environment creation in
PipEnvby using the system-installed interpreter or a user-defined one viatools.system.pipenv:python_interpreter.Docs: conan-io/docs#4291
developbranch, documenting this one.