Re: [python-win32] Using relative python path in exe files generated by `ScriptMaker`

2024-12-09 Thread Glyph
Hi Ilya, The main solution here is "don't do that". You can build binary wheels and share them between machines, but venvs are not meant to be shared. I just posted about this the other day: . Wny are you trying to copy a venv from one machi

[python-win32] Using relative python path in exe files generated by `ScriptMaker`

2024-12-09 Thread Ilya Kazakevich via python-win32
Hello, I create an environment on one Windows machine and then move it to another one. Once I call `pip install` it creates `.exe` files for tools i.e `poetry.exe`, `django-admin.exe` e.t.c. This is done by a class called `ScriptMaker` as I see. The problem is it sets a full path (`sys.executable`

Re: [python-win32] Using relative python path in exe files generated by `ScriptMaker`

2024-12-09 Thread Glyph
> On Dec 9, 2024, at 11:15 PM, Jacob Kruger wrote: > > Might not be relevant, if am misunderstanding something, but I generally just > use pip freeze > requirements.txt, shift that text file over to new > location/machine, create new virtual environment, and run pip install -r > requirements

Re: [python-win32] Using relative python path in exe files generated by `ScriptMaker`

2024-12-09 Thread Jacob Kruger
Might not be relevant, if am misunderstanding something, but I generally just use pip freeze > requirements.txt, shift that text file over to new location/machine, create new virtual environment, and run pip install -r requirements.txt from there to recreate environment, and, I do this across d