Modify

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#8032 closed enhancement (fixed)

Add pyconfig.h to /usr/include/python2.6

Reported by: mikko@… Owned by: developers
Priority: normal Milestone:
Component: packages Version: Backfire 10.03 RC3
Keywords: python python2.6 python-mini pyconfig.h include Cc:

Description

Currently, installing setuptools to openwrt's python isn't possible.

It will fail with the following error:
# sh setuptools-0.6c11-py2.6.egg
error: invalid Python installation: unable to open /external/target/usr/include/python2.6/pyconfig.h (No such file or directory)

It would be very useful to have pyconfig.h in /usr/include/python2.6 directory. setuptools a very common requirement of python programs (i.e. ToscaWidgets). Not just for installation but for runtime. I find it very hard to live without it.

I had to manually compile openwrt's python from sources, grab pyconfig.h from ./build_dir/target-mipsel_uClibc-0.9.30.1/Python-2.6.4/pyconfig.h and copy it to target router in /usr/include/python2.6/pyconfig.h

After this I can install setuptools normally:
# sh setuptools-0.6c11-py2.6.egg
Processing setuptools-0.6c11-py2.6.egg
Copying setuptools-0.6c11-py2.6.egg to /external/target/usr/lib/python2.6/site-packages
Adding setuptools 0.6c11 to easy-install.pth file
Installing easy_install script to /external/target/usr/bin
Installing easy_install-2.6 script to /external/target/usr/bin

Installed /external/target/usr/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg
Processing dependencies for setuptools==0.6c11
Finished processing dependencies for setuptools==0.6c11

setuptools, including the easy_install script works fine now.
This applies for backfire 10.03 RC3 but I think it's common for other versions too.

Attachments (1)

pyconfig.h (19.7 KB) - added by anonymous 6 years ago.
pyconfig.h

Download all attachments as: .zip

Change History (4)

comment:1 Changed 6 years ago by anonymous

pyconfig is still missing in trunk r23451

comment:2 Changed 6 years ago by jow

  • Resolution set to fixed
  • Status changed from new to closed

Should be fixed with r23515.

comment:3 Changed 6 years ago by anonymous

Temporary (and dirty?) workaround:

  1. Create the /usr/include/python2.6/ directory: mkdir -p /usr/include/python2.6/
  2. Put the pyconfig.h file that is attached to this ticket into that directory

The pyconfig.h file I've attached to this ticket came straight from the Python 2.6.4 source: http://downloads.openwrt.org/sources/Python-2.6.4.tar.bz2

Changed 6 years ago by anonymous

pyconfig.h

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.