Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 368591 - dev-python/argparse-1.2.1 failing to build because of python 3.2.
Summary: dev-python/argparse-1.2.1 failing to build because of python 3.2.
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-24 13:37 UTC by Piotr Karbowski (RETIRED)
Modified: 2011-05-24 13:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Karbowski (RETIRED) gentoo-dev 2011-05-24 13:37:39 UTC
Hi, I have written a script to build a custom stage3, I am running it from time to time. All what script is doing is get stage3 and portage, unpack it, chroot into new stage, do some config things, upgrade it to ~arch and then emerge few apps to it, it failed today.

Pure, new x86 gentoo, just upgraded to ~x86.
It failing on building dev-python/argparse-1.2.1 because it can't make CPYTHON 3.2 module. On the other system, where I have 2.7, 3.1 and 3.2 python, it does not build a module for 3.2 version but 3.1 only, and it works.

As a quick fix, I did export USE_PYTHON=2.7 and then emerge -1 argparse, to prevent from installing cpython module for python 3.2

The useful error part:
## CUT HERE
 * Building of dev-python/argparse-1.2.1 with CPython 2.7...
python2.7 setup.py build -b build-2.7
running build
running build_py
creating build-2.7
creating build-2.7/lib
copying argparse.py -> build-2.7/lib
warning: build_py: byte-compiling is disabled, skipping.

 * Building of dev-python/argparse-1.2.1 with CPython 3.2...
python3.2 setup.py build -b build-3.2
Traceback (most recent call last):
  File "setup.py", line 3, in <module>
    from setuptools import setup, find_packages
ImportError: No module named setuptools
 * ERROR: dev-python/argparse-1.2.1 failed (compile phase):
 *   Building failed with CPython 3.2 in distutils_building() function
## CUT HERE



Reproducible: Always
Comment 1 Piotr Karbowski (RETIRED) gentoo-dev 2011-05-24 13:42:37 UTC
I think this is my fault, I did not did python-update, sorry.