Hello, I've found Debian package has patch.py since the dawn of times, disabling the check for ElementTree in setup.py.
As it's really not necessary to check for ET during packaging, I've crafted a small patch. Attached. --
pgpyufhDoCd6F.pgp
Description: PGP signature
--- setup.py.orig 2008-02-27 17:15:11.000000000 +0600 +++ setup.py 2009-03-06 02:50:41.000000000 +0600 @@ -9,19 +9,20 @@ sys.stderr.write("S3cmd requires Python 2.4 or newer.\n") sys.exit(1) -try: - import xml.etree.ElementTree as ET - print "Using xml.etree.ElementTree for XML processing" -except ImportError, e: - sys.stderr.write(str(e) + "\n") +if not os.getenv("S3CMD_PACKAGING"): try: - import elementtree.ElementTree as ET - print "Using elementtree.ElementTree for XML processing" + import xml.etree.ElementTree as ET + print "Using xml.etree.ElementTree for XML processing" except ImportError, e: sys.stderr.write(str(e) + "\n") - sys.stderr.write("Please install ElementTree module from\n") - sys.stderr.write("http://effbot.org/zone/element-index.htm\n") - sys.exit(1) + try: + import elementtree.ElementTree as ET + print "Using elementtree.ElementTree for XML processing" + except ImportError, e: + sys.stderr.write(str(e) + "\n") + sys.stderr.write("Please install ElementTree module from\n") + sys.stderr.write("http://effbot.org/zone/element-index.htm\n") + sys.exit(1) try: ## Remove 'MANIFEST' file to force
------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H
_______________________________________________ S3tools-general mailing list S3tools-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/s3tools-general