[Pythonmac-SIG] Distutils for research?
Bob Ippolito
bob at redivi.com
Tue Dec 13 20:28:14 CET 2005
On Dec 13, 2005, at 11:20 AM, Louis Pecora wrote:
> Bob Ippolito wrote:
>
>>
>> On Dec 13, 2005, at 10:39 AM, Louis Pecora wrote:
>>
>>> I will be honest and admit I do not grok disutils. I sense power
>>> there,
>>> but have not had the guts nor time to explore it. If you have a
>>> simple
>>> example that is easy to send, please do. Since I will probably be
>>> doing
>>> more and more with Python, I am trying to expose myself to useful
>>> branches of the Python world without becoming overwhelmed.
>>
>>
>> You need to understand distutils, or your experience developing
>> Python extensions will be extremely painful. distutils is not at all
>> difficult. The documentation is pretty good, and you can always look
>> at the thousands of setup.py files out there written by other Python
>> developers. Pick a project similar to yours and use its setup.py as
>> a template.
>>
>> Or, you can do everything manually and live a painful existence...
>> especially because the correct linker flags and compiler options are
>> a mile long on Mac OS X and totally different than those from any
>> other platform.
>>
>> -bob
>
> Bob or anyone,
>
> I have started to look over distutils, but a question immediately
> comes
> to mind. With the idea of trying to avoid learning what I don't
> need,
> I gotta ask:
>
> Is distutils more for distributing packages/modules than developing?
No, it solves both problems. One of these two will become very
familiar to you:
(distutils)
python setup.py build_ext -i
(if using setuptools)
python setup.py develop
-bob
More information about the Pythonmac-SIG
mailing list