PMXBOT Log file Viewer

Help | Karma | Search:

#pypa logs for Wednesday the 19th of June, 2019

(Back to #pypa overview) (Back to channel listing) (Animate logs)
[07:20:16] <pombreda> when delivering Python-based apps on Windows what would be the best way to find a Python interpreter?
[07:20:25] <pombreda> 1. do not find it, bundle it :P
[07:20:43] <pombreda> 2. or look in well known applications
[07:21:05] <pombreda> (assuming a default Python 3 was installed with all defaults, and is not in the path)
[07:21:22] <pombreda> *2. or look in well known locations!
[07:21:54] <pombreda> (that's been a non issue on Linux and macOS)
[07:22:49] <pombreda> (that's not been an issue until now with Python 2 that went nicely in C:\PythonXX by default)
[07:23:00] <pombreda> that's for github.com/nexB/scancode-toolkit FWIW
[07:29:36] <pombreda> I guess this may come handy? github.com/sarugaku/pythonfinder but techalchemy there is a chicken and egg problem: this is written in Python itself :|
[07:35:00] <pombreda> Windows is a totally different universe :|
[07:35:18] <pombreda> (in saying that I am trying to stay polite ;) )
[08:06:29] <njs> pombreda: for a standalone app targeted at folks who aren't necessarily python devs, then bundling is usually the best bet
[08:06:46] <njs> maybe with pyinstaller.org or similar
[08:07:15] <njs> or maybe pypi.org/project/briefcase is the new hotness, I'm not sure
[08:15:36] <pombreda> njs: thanks. I guess that the way to go too. Anything else looks like a source of problems at any deployment scale
[13:16:30] <ngoldbaum> (not that you necessarily want to do that)
[13:43:34] <pombreda> ngoldbaum: I probably would not want that layer of extra dependencies!
[13:59:52] <pombreda> hum, is activate_this.py gone in Python 3?
[14:00:46] <pombreda> shrikes. that's venv not virtualenv now
[14:46:57] <techalchemy> pombreda: i mean I assume you do have python, that library just finds _all_ of the installations (provided they are discoverable)
[16:11:18] <pombreda> techalchemy: the problem is mostly on Windows... the locations of installed Python are a bit messy and all over. So you may not even know whcih one to use to run the search ;)
[16:11:32] <techalchemy> pombreda: it doens't really matter which one you use
[16:12:20] <pombreda> techalchemy: here is my scenario: unzip an archive that contains a .bat script to boostrap. (and then installs and configures things)
[16:12:38] <techalchemy> the only thing I haven't updated pythonfinder to accommodate is windows store based installs... but the intention there is that they would be your primary / only python install and on your path anyway so it'd find that
[16:12:41] <pombreda> techalchemy: I do not know where or if there is an interpreter installed
[16:13:00] <pombreda> (and by default it is not in the path)
[16:13:40] <pombreda> so for now, I have instructed users to install Python 2.7 in the default location. (C:\Python27)
[16:13:41] <techalchemy> well I mean in theory it could be literally anywhere so your search parameters are a bit wide
[16:14:40] <pombreda> techalchemy: I think that in my case (which is an app) the only sane way as we are porting to Python 3 will be to bundle a whole interpreter (as njs suggested)
[16:14:58] <techalchemy> seems reasonable
[16:15:07] <techalchemy> easier on users than making them install python
[16:15:11] <pombreda> yes
[16:15:33] <techalchemy> njs is pretty smart. I usually do whatever he tells me
[16:16:29] <techalchemy> nah I just am stubborn and encounter a lot of problems
[16:16:57] <pombreda> and I have been crafting NSIS installers too in the past with on mil+ installs so that + a python would be the way
[16:16:59] <techalchemy> stubborn + problem = solution, eventually
[16:17:56] <pombreda> :)
[16:17:57] <pombreda> techalchemy: there is nothing special on a Windows python, right? I could just rezip the install directory (and in my case I surely do not want to update the registery with .py extensions and such )
[16:18:21] <techalchemy> oh there are special things
[16:18:39] <pombreda> I wonder if I could likely install in one place and then repack for my bundle?
[16:19:02] <techalchemy> pyinstaller.org may be the way to go
[16:36:56] <pombreda> thx. :)
[16:38:52] <pombreda> I am going to idle in #pyinstaller a bit