How to use setup.py to compile a C extension rather than to install it

Xiao-Qin Xia xx758 at cam.ac.uk
Mon Feb 17 07:02:50 EST 2003


Hi, there,

I am trying to write a C extension for my python scripts, to use distutils 
offered by Python to write a setup.py is quite convient, however it seems 
the setup.py alway installs the C extension to site-package, while I want 
keep the c extension in the same original directory with my python scripts. 
Anybody can tell me how to do this?

Thanks,

York





More information about the Python-list mailing list