Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Distribute/distutils specify Python version

Kinda followup to this... :)

My project is Python 3-only and my question is basically how I tell distutils/distribute/whoever that this package is Python 3-only?

like image 298
dom0 Avatar asked Nov 14 '12 18:11

dom0


1 Answers

Not sure if there's some special setting, but this in the beginning of setup.py might help:

import sys
if sys.version_info.major < 3:
    print("I'm only for 3, please upgrade")
    sys.exit(1)
like image 116
bereal Avatar answered Oct 08 '22 20:10

bereal