From: Gary P. <gar...@gm...> - 2010-07-14 17:02:32
|
I'll do as you ask as soon as I can get to it. In the meantime, note that there is also a python variable that holds information about the python version: sys.version_info (there are probably other similar variables). So with yet more work the version could be checked. -g On Wed, Jul 14, 2010 at 12:47 PM, Bruce Sherwood <bas...@nc...> wrote: > This suggests that I should make available an optional VPython installer > that checks for a Python being available but not check for the version at > all, leaving it to the person doing the installing the responsibility for > having an appropriate level of Python installed. Gary, as a test you might > install VPython on the standard Python 2.6 (maybe on a different Mac) and > save a copy of the files that go into site-packages, then on your Enthought > machine just copy those files into site-packages. If the Enthought Python is > in fact an instance of Python 2.6, this should work. > > If you do this experiment, please let me know, as I don't have an Enthought > installation to try this on myself. > > Bruce Sherwood > > > On Wed, Jul 14, 2010 at 9:55 AM, Gary Pajer <gar...@gm...> wrote: > >> You're right. Here's a snippet of my conversation with them: >> >> ---------------------------------------------------------- >> > The Mac EPD installer has a directory named >> > >> > /Library/Frameworks/Python.framework/Versions/6.2 >> > >> > But the Vpython installer checks to see if exists: >> >> > >> > /Library/Frameworks/Python.framework/Versions/2.6 >> > >> > I rather suspect that the "6.2" is a typo. Simply renaming the >> directory >> > name doesn't work ... stuff doesn't get found. >> >> No, the "6.2" refers to the EPD version, not the python version. It >> sounds like Vpython is either hardcoded to look at that dir, rather >> than use sys.prefix, or you're using the system python to install it. >> -------------------------------------------------- >> >> So the ball is back in Vpython's court: the installer should look for >> sys.prefix ??? >> >> >> >> On Wed, Jul 14, 2010 at 11:43 AM, James Mueller <mu...@pi...> wrote: >> >>> No, this is exactly what they want. 6.2 is the version of the Enthought >>> distribution. It doesn't agree with the python version, so perhaps this is >>> a bad choice on their part, but I don't think they would consider it a bug. >>> >>> -Jim >>> >>> >>> >>> > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users > > |