Re: python2.2 or python2.3?
Russell Nelson <[email protected]>
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
Wari Wahab writes:
> This just means that your particular python installation does not have
> distutils installed.
Thanks for the reply. I'm running Debian, and they break the python
package into a -dev package. I figured it out on my own, by searching
for python using dselect (ack, spit!).
May I suggest that you avoid this problem in the future by doing
something like this:
try:
from distutils.core import setup
except ImportError:
import os
from sys import version_info as v
if v[0] > 2 or (v[0] = 2 and v[1] >= 1):
print """distutils isn't present. Perhaps you need to install a
python-dev or python-devel package?"""
os.exit(1)
else:
print "Must be Python 2.1 at least"
os.exit(1)
--
--My blog is at angry-economist.russnelson.com | Violence never solves
Crynwr sells support for free software | PGPok | problems, it just changes
521 Pleasant Valley Rd. | +1 212-202-2318 voice | them into more subtle
Potsdam, NY 13676-3213 | FWD# 404529 via VOIP | problems.
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click