Skip to content

How would you install the 3.3.0rc1 in python?

wolf29 edited this page Sep 3, 2012 · 2 revisions

Of course I meant, "How would you install Python-3.3.0rc1 in Pythonbrew?" The standard that works great with the stable releases does not work. pythonbrew install 3.3.0rc1 ERROR: Unknown python version: Python-3.3.0rc1`

That is the correct gz file, but I suspected it was in an alternate directory structure on the python.org server however I have discovered it is in a similar directory structure on the server. http://www.python.org/ftp/python/3.3.0/Python-3.3.0rc1.tgz http://www.python.org/ftp/python/3.2.3/Python-3.2.3.tgz http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz So where is "install?" ~/.pythonbrew/scripts/commands$ however the install script calls ~/.pythonbrew/scripts/pythonbrew/installer/pythoninstaller So now to see if there is a way to extend install.py without breaking anything serious. from pythonbrew.util import makedirs, symlink, Package, is_url, Link,\ unlink, is_html, Subprocess, rm_r,\ is_python25, is_python24, is_python26, is_python27,\ extract_downloadfile, is_archive_file, path_to_fileurl, is_file,\ fileurl_to_path, is_python30, is_python31, is_python32,\ get_macosx_deployment_target, Version So there is a module for is_pythonXX for most of the versions a person might be writing for, so what do these look like? `def is_python31(version): return _py_version_cmp(version, '3.1', '3.2')

def is_python32(version): return _py_version_cmp(version, '3.2', '3.3')`

so if I want to install the 3.3.0rc1...

# Test patch for installing 3.3 inside pythonbrew.util def is_python33(version): return _py_version_cmp(version, '3.3', '3.4') # Which matches the actual code exactly, and I am going to test it first. Or maybe..`

def is_python33rc(version): return _py_version_cmp(version, '3.3rc1', '3.3rc2') # This matches the pattern of the stable pythonbrew code but uses the next expected release

# Test patch for ~/.pythonbrew/scripts/commands/install from pythonbrew.util import makedirs, symlink, Package, is_url, Link,\ unlink, is_html, Subprocess, rm_r,\ is_python25, is_python24, is_python26, is_python27,\ extract_downloadfile, is_archive_file, path_to_fileurl, is_file,\ fileurl_to_path, is_python30, is_python31, is_python32,\ is_python33,\ get_macosx_deployment_target, Version

Now I am stuck, because both of my changes failed to get 3.3.0rc1 installed. The install script did not crash, however and the error did not change. How about ..figuring out the ./configure options to properly get the 3.3.0rc1 installed into the pythonbrew directories. Probably starts: ./configure --prefix-$HOME/.pythonbrew/pythons/ Then the question is "How do I get it registered with pythonbrew?"

Clone this wiki locally