-
Notifications
You must be signed in to change notification settings - Fork 17
Python 2.6 #6
base: master
Are you sure you want to change the base?
Python 2.6 #6
Conversation
Comment from Jan: in target/tools/src/python-2.4.5/setup.py:527 (and below): db_setup_debug = False # verbose debug prints from this script? Setup.py looks for /usr/include/*db*3,4*/db.h, which is entirely broken: it should ask GCC if it can find db.h (and/or look at the include flags); we are cross compiling and it entirely ignores that option. This holds for all of the extension modules that are checked here. It would be nice if we could add %(system_prefix)s for where it looks for all extensions; on the other hand: trusting GUB's dependencies and patching Setup.dist is OK too.
This reverts commit aa457a0. The real fix is teaching setup.py about cross compilation.
This reverts commit 48b18f5. The real fix is teaching setup.py about cross compilation.
This also removes the need for dbm and crypt fixes (actually, crypt and nis should not build, as we do not have those libraries in GUB).
Also, rename python-2-6 to python-2.6 and add python-2.4 package.
Fix the compilation of shared python modules, the install target, and the ImportError on "import hashlib" in python 2.6.
Conflicts: gub/specs/python.py lilypond.make
Upgrading python from 2.4 has been requested for a couple of years (issue 1895). It would rid us of 2.4 problems and ease the transition to a common python2 and python3 codebase. It's obviously affecting the LilyPond build, so @PhilHolmes can you test this branch and see if you can still build LilyPond? |
Issue 1895 mentioned above has been marked as duplicate of LilyPond issue 1079. |
Today I launched 'make LILYPOND_BRANCH=stable/2.20 lilypond' on Ubuntu 14.04 i686 (running in VirtualBox) and I got this error:
IIUC, it fails because conditional expressions were added in python2.5. @PhilHolmes Have you ever got these errors? Here's the traceback:
|
I suggest to abandon this pull request since we should rather upgrade to 4.7.x. However, it might serve as an aid in the transition. |
This is based on Jan's upstream master, but I include here one more python 2.6 fix required to fully build lilypond.