#150 setup.py python2.4 warning: Unknown distribution option: 'requires'

dan pritts


I get the following warning when installing s3cmd on an old RHEL5 machine, which has python 2.4.

1.5.0-rc1 from sourceforge

[root@batch s3cmd-1.5.0-rc1]# python setup.py install
No module named etree.ElementTree
Using elementtree.ElementTree for XML processing
/usr/lib64/python2.4/distutils/dist.py:236: UserWarning: Unknown distribution option: 'requires'
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/S3
copying S3/S3Uri.py -> build/lib/S3
copying S3/FileLists.py -> build/lib/S3
copying S3/MultiPart.py -> build/lib/S3
copying S3/ConnMan.py -> build/lib/S3
copying S3/FileDict.py -> build/lib/S3
copying S3/Config.py -> build/lib/S3
copying S3/CloudFront.py -> build/lib/S3
copying S3/AccessLog.py -> build/lib/S3
copying S3/SortedDict.py -> build/lib/S3
copying S3/Utils.py -> build/lib/S3
copying S3/Progress.py -> build/lib/S3
copying S3/HashCache.py -> build/lib/S3
copying S3/init.py -> build/lib/S3
copying S3/ACL.py -> build/lib/S3
copying S3/BidirMap.py -> build/lib/S3
copying S3/Exceptions.py -> build/lib/S3
copying S3/PkgInfo.py -> build/lib/S3
copying S3/ExitCodes.py -> build/lib/S3
copying S3/S3.py -> build/lib/S3
running build_scripts
creating build/scripts-2.4
copying and adjusting s3cmd -> build/scripts-2.4
changing mode of build/scripts-2.4/s3cmd from 644 to 755
running install_lib
running install_scripts
copying build/scripts-2.4/s3cmd -> /usr/bin
changing mode of /usr/bin/s3cmd to 755
running install_data
[root@batch s3cmd-1.5.0-rc1]#

requires appears to be looking for dateutil. As it turns out i didn't have that installed, and s3cmd failed. On the plus side I got a useful error message on the import failure.



  • Matt Domsch

    Matt Domsch - 2015-02-06 now in PyPi fixes all this, pulling in ez_setup, and python-dateutils. This does require python 2.6 now, not 2.4.

    Last edit: Matt Domsch 2015-02-06
  • Matt Domsch

    Matt Domsch - 2015-02-06
    • status: open --> closed-fixed

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks