Commits

clach04 committed a0217e8

Generated setup.py now uses setuptools or disutils, which ever is available (doesn't look for Distribute). Auto fills in platform and classifiers.

  • Participants
  • Parent commits 90dcc07

Comments (0)

Files changed (1)

poachplatelib/package.py

             script = ''
 
         create_file(fout('setup.py'), '''%(script_copyright)s
-from distutils.core import setup
-#from setuptools import setup
+try:
+    from setuptools import setup, find_packages
+except ImportError:
+    from distutils.core import setup
+    find_packages = None
 
 from %(libname)s import meta
 
       %(script)s
       package_dir={'%(libname)s': '%(libname)s'},
       packages=['%(libname)s'],
+      classifiers=[  # See http://pypi.python.org/pypi?%%3Aaction=list_classifiers
+        'Classifier: Programming Language :: Python',
+        ],
+      platforms='any',  # or distutils.util.get_platform()
 )
 ''' % {'name': self.name,
        'script': script,