473,399 Members | 4,192 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

[2.4.2] Compiling Python with packages?

Hello

I need to compile Python with the packages "socket,sys,time,os", but
I've never done it before, and would like confirmation that this will
work as planned:

======
make clean
../configure --with-socket --with-sys --with-time --with-os
make
make install
======

In addition, are there recommended switches I should know about?

Incidently, is there an equivalent to PHP's phpinfo() to check what
packages Python provides on a host?

Thank you.
Feb 3 '08 #1
2 1247
I need to compile Python with the packages "socket,sys,time,os", but
I've never done it before, and would like confirmation that this will
work as planned:

======
make clean
./configure --with-socket --with-sys --with-time --with-os
make
make install
======
No, it won't. You don't give any arguments to configure normally,
when building Python. Instead, setup.py will detect what libraries
are on your system, and use them.

There are a few --enable and --with flags supported; ask --help
what they are.

The modules you want to have (socket, sys, time, and os) are always
built.
In addition, are there recommended switches I should know about?

Incidently, is there an equivalent to PHP's phpinfo() to check what
packages Python provides on a host?
There is sys.builtin_module_names. However, some modules are
not builtin (they are shared libraries instead); it's easiest
to ls build/lib.<systemafter compiling Python to see what
modules have been built.

Regards,
Martin
Feb 3 '08 #2
On Sun, 03 Feb 2008 09:14:24 +0100, "Martin v. Löwis"
<ma****@v.loewis.dewrote:
>No, it won't. You don't give any arguments to configure normally,
when building Python. Instead, setup.py will detect what libraries
are on your system, and use them.
Thanks for the tip.
Feb 4 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Martin Bless | last post by:
The good news: Along with Python-2.4 comes really good news to Windows users. Yes, you now CAN build extension modules yourself using the SAME C++ compiler and linker Python is built with...
0
by: Marco Vezzoli | last post by:
Hi all, I'm using solaris 8 gcc 3.0.1 postgres 7.3.4 psycopg 1.1.2 apache 1.3.19 python 2.1.1 mod_python 2.7.8 compiled with DSO
0
by: Andreas | last post by:
Extension: --------------- pyshapelib 0.3 with Python 2.4 Problem: ------------- D:\Python24\Lib\site-packages\shapelib\setup>pytest.py Traceback (most recent call last): File...
1
by: vduber6er | last post by:
Hello, I just recently switched my code from one server to another and now having some problems compiling my code. I was able to compile fine with my last server now but this current one is...
2
by: metaperl | last post by:
I've tried both Python 2.4.4 and Python 2.5. I'm trying to build from source and install under a local directory Swarm since OpenSwarm requires builds of Postgres and Python under it's control. ...
11
by: ZMY | last post by:
Dear all, I am a real newbie for both python and QNX, but I am still trying to compile Numeric-24.2 under QNX4.25 with python 2.2. I got following error message: $ sudo python setup.py...
6
by: howa | last post by:
I have compiled python 2.5 from source i.e. ../configure make make install but when i try to install another package require python, seems it
2
by: Rustom Mody | last post by:
Ive been trying to compile python 3000 on debian etch And on running test I get: 4 skips unexpected on linux2: test_tcl test_dbm test_ssl test_bsddb Can someone tell me what packages I am...
4
by: Colin J. Williams | last post by:
1.I have both 2.5 and 2.6 but both appear, under Recent Projects, as pcbuild. It would be helpful if the Python Version could be indicated. 2.With 2.6, Python compiles and executes OK but...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.