Building python on Linux with no X

S

Sandeep Gupta

I have tried using the source rpm and the tarball to build python on
RH9. In both cases I get a build failure on tkinter because I don't
have X installed.

Since I only care about the core python and the devel rpms, is there
any way to only have those two rpms built from the source rpm?

Thanks

Sandeep
 
M

Miki Tebeka

Hello Sandeep,
I have tried using the source rpm and the tarball to build python on
RH9. In both cases I get a build failure on tkinter because I don't
have X installed.

Since I only care about the core python and the devel rpms, is there
any way to only have those two rpms built from the source rpm?
I don't know about the source RPM however if you comment out _tkinter in
the Modules/Setup file it should not be build.
I didn't try but maybe ./configure --without-tkinter will work as well.

HTH.
Miki
 
W

wrobell

Hello Sandeep,

I don't know about the source RPM however if you comment out _tkinter in
the Modules/Setup file it should not be build.
I didn't try but maybe ./configure --without-tkinter will work as well.

there is also

ftp://ftp.pld-linux.org/dists/ac/PLD/SRPMS/SRPMS/python-2.3.3-2.src.rpm

just

rpmbuild --rebuild python-2.3.3-2.src.rpm --without tkinter

it is possible that it builds on rh box, too

wrobell <[email protected]>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,196
Messages
2,571,036
Members
47,631
Latest member
kukuh

Latest Threads

Top