Bug#533922: soya: FTBFS: Pyrex.Compiler.Errors.CompileError: /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/_soya.pyx:0:0: 'soya-0.14._soya' is not a valid module name
OoO En cette nuit nuageuse du samedi 17 octobre 2009, vers 00:01, Jakub Wilk uba...@users.sf.net disait : '%s' is not a valid module name % module_name) Pyrex.Compiler.Errors.CompileError: /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/_soya.pyx:0:0: 'soya-0.14._soya' is not a valid module name make: *** [debian/python-module-stampdir/python-soya] Error 1 This is not easy to fix. A change in pyrex will try to guess full module name. It gets soya-0.14._soya (while previous versions just get _soya) instead of soya._soya. This seems simpler to fix in pyrex than in soya. Actually, I find extracting module names a nice feature of Pyrex. What is broken is the directory structure of soya. Fortunately, you can easily work-around this by monkey-patching Pyrex. See the attached patch. (Please note that I only tested if soya builds fine, not if it works fine.) Hi Jakub! Many thanks for this patch! -- die_if_kernel(Penguin instruction from Penguin mode??!?!, regs); 2.2.16 /usr/src/linux/arch/sparc/kernel/traps.c pgpS1qFiCdHmE.pgp Description: PGP signature
Bug#533922: soya: FTBFS: Pyrex.Compiler.Errors.CompileError: /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/_soya.pyx:0:0: 'soya-0.14._soya' is not a valid module name
* Vincent Bernat ber...@debian.org, 2009-07-05, 10:48: '%s' is not a valid module name % module_name) Pyrex.Compiler.Errors.CompileError: /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/_soya.pyx:0:0: 'soya-0.14._soya' is not a valid module name make: *** [debian/python-module-stampdir/python-soya] Error 1 This is not easy to fix. A change in pyrex will try to guess full module name. It gets soya-0.14._soya (while previous versions just get _soya) instead of soya._soya. This seems simpler to fix in pyrex than in soya. Actually, I find extracting module names a nice feature of Pyrex. What is broken is the directory structure of soya. Fortunately, you can easily work-around this by monkey-patching Pyrex. See the attached patch. (Please note that I only tested if soya builds fine, not if it works fine.) -- Jakub Wilk diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -80,6 +80,13 @@ MACOSX_DEPLOYMENT_TARGET = os.getenv('MACOSX_DEPLOYMENT_TARGET') try: + from Pyrex.Compiler.Main import Context + def extract_module_name(self, path): + dir, filename = os.path.split(path) + module_name, _ = os.path.splitext(filename) + return module_name + Context.extract_module_name = extract_module_name + del Context from Pyrex.Distutils import build_ext HAVE_PYREX = 1 except:
Bug#533922: soya: FTBFS: Pyrex.Compiler.Errors.CompileError: /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/_soya.pyx:0:0: 'soya-0.14._soya' is not a valid module name
OoO Lors de la soirée naissante du dimanche 21 juin 2009, vers 17:13, Lucas Nussbaum lu...@lucas-nussbaum.net disait : '%s' is not a valid module name % module_name) Pyrex.Compiler.Errors.CompileError: /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/_soya.pyx:0:0: 'soya-0.14._soya' is not a valid module name make: *** [debian/python-module-stampdir/python-soya] Error 1 This is not easy to fix. A change in pyrex will try to guess full module name. It gets soya-0.14._soya (while previous versions just get _soya) instead of soya._soya. This seems simpler to fix in pyrex than in soya. -- printk(KERN_WARNING %s: Short circuit detected on the lobe\n, dev-name); 2.4.0-test2 /usr/src/linux/drivers/net/tokenring/lanstreamer.c pgpvPI9y5SlCH.pgp Description: PGP signature
Bug#533922: soya: FTBFS: Pyrex.Compiler.Errors.CompileError: /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/_soya.pyx:0:0: 'soya-0.14._soya' is not a valid module name
Package: soya Version: 0.14-3 Severity: serious User: debian...@lists.debian.org Usertags: qa-ftbfs-20090620 qa-ftbfs Justification: FTBFS on amd64 Hi, During a rebuild of all packages in sid, your package failed to build on amd64. Relevant part: make[1]: Entering directory `/build/user-soya_0.14-3-amd64-ECEolt/soya-0.14' make[1]: Nothing to be done for `update-config'. make[1]: Leaving directory `/build/user-soya_0.14-3-amd64-ECEolt/soya-0.14' for buildver in 2.4 2.5; do \ cd /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14 cd . python$buildver setup.py build --build-base=/build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/./build; \ done Pyrex compilation enabled! BUILDING True Sound support (with OpenAL) enabled... running build running build_py creating /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/build creating /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/build/lib.linux-x86_64-2.4 creating /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/build/lib.linux-x86_64-2.4/soya copying blender2cal3d.py - /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/./build/lib.linux-x86_64-2.4/soya copying blender2soya.py - /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/./build/lib.linux-x86_64-2.4/soya copying label3d.py - /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/./build/lib.linux-x86_64-2.4/soya copying sphere.py - /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/./build/lib.linux-x86_64-2.4/soya copying ms3d2soya.py - /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/./build/lib.linux-x86_64-2.4/soya copying particle.py - /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/./build/lib.linux-x86_64-2.4/soya copying macosx.py - /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/./build/lib.linux-x86_64-2.4/soya copying widget.py - /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/./build/lib.linux-x86_64-2.4/soya copying tofu4soya.py - /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/./build/lib.linux-x86_64-2.4/soya copying _3DS2soya.py - /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/./build/lib.linux-x86_64-2.4/soya copying spc_material.py - /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/./build/lib.linux-x86_64-2.4/soya copying cerealizer4soya.py - /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/./build/lib.linux-x86_64-2.4/soya copying cursor.py - /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/./build/lib.linux-x86_64-2.4/soya copying blender2soya_batch.py - /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/./build/lib.linux-x86_64-2.4/soya copying openal4soya.py - /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/./build/lib.linux-x86_64-2.4/soya copying __init__.py - /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/./build/lib.linux-x86_64-2.4/soya copying soya3d.py - /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/./build/lib.linux-x86_64-2.4/soya copying ray.py - /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/./build/lib.linux-x86_64-2.4/soya copying soya2blender.py - /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/./build/lib.linux-x86_64-2.4/soya copying model.py - /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/./build/lib.linux-x86_64-2.4/soya copying cal3d_export.py - /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/./build/lib.linux-x86_64-2.4/soya copying facecutter.py - /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/./build/lib.linux-x86_64-2.4/soya copying config.py - /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/./build/lib.linux-x86_64-2.4/soya copying main_loop.py - /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/./build/lib.linux-x86_64-2.4/soya copying blender2cal3d_call.py - /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/./build/lib.linux-x86_64-2.4/soya copying math3d.py - /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/./build/lib.linux-x86_64-2.4/soya copying pygame_sound4soya.py - /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/./build/lib.linux-x86_64-2.4/soya copying terrain.py - /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/./build/lib.linux-x86_64-2.4/soya copying q3bsp2soya.py - /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/./build/lib.linux-x86_64-2.4/soya copying ark2soya.py - /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/./build/lib.linux-x86_64-2.4/soya copying cube.py - /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/./build/lib.linux-x86_64-2.4/soya copying laser.py - /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/./build/lib.linux-x86_64-2.4/soya copying objmtl2soya.py - /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/./build/lib.linux-x86_64-2.4/soya copying sdl_mixer4soya.py - /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/./build/lib.linux-x86_64-2.4/soya creating /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/build/lib.linux-x86_64-2.4/soya/gui copying gui/__init__.py - /build/user-soya_0.14-3-amd64-ECEolt/soya-0.14/./build/lib.linux-x86_64-2.4/soya/gui copying gui/style.py -