from setuptools import setup
from setuptools.dist import Distribution
import pip
import os
import sys
import io

import classad

package_name = "htcondor"
long_description = open("README.rst", "r").read()

package_data = {}
if os.name == 'posix':
    package_data['htcondor'] = ['*.so', 'condor_libs/*.so*']
    package_data['classad'] = ['*.so']
else:
    package_data['htcondor'] = ['*.pyd', '*.dll', 'condor_libs/*.dll*']
    package_data['classad'] = ['*.pyd', '*.dll']

class BinaryDistribution(Distribution):
    """ Forces BinaryDistribution. """
    def has_ext_modules(self):
        return True

    def is_pure(self):
        return False


setup(name=package_name,
      version=classad.version()+'rc1',
      url='https://htcondorproject.org',
      license='ASL 2.0',
      description='HTCondor python bindings.',
      long_description=long_description,
      distclass=BinaryDistribution,
      packages=['htcondor', 'classad'],
      package_data=package_data,
      zip_safe=False,
      maintainer="Brian Bockelman",
      include_package_data=True,
      #data_files=[("", ["LICENSE-2.0.txt"])],
      keywords='htcondor htc dhtc',
      classifiers=[
        'Development Status :: 5 - Production/Stable',
        'Environment :: Console',
        'Intended Audience :: Developers',
        'Intended Audience :: Education',
        'Intended Audience :: Information Technology',
        'Intended Audience :: Science/Research',
        'License :: OSI Approved :: Apache Software License',
        'Operating System :: MacOS',
        'Operating System :: Microsoft :: Windows',
        'Operating System :: POSIX',
        'Operating System :: Unix',
        'Programming Language :: Python',
        'Programming Language :: Python :: 2',
        'Programming Language :: C++',
        'Programming Language :: Python :: Implementation :: CPython',
        'Topic :: Scientific/Engineering',
        'Topic :: Software Development',
        'Topic :: System :: Distributed Computing',
        ]
      )

@@ -705,14 +705,8 @@
 on()
-+'rc1'
 ,%0A  
@@ -726,27 +726,38 @@
 s://
-htcondorproject.org
+research.cs.wisc.edu/htcondor/
 ',%0A 
@@ -808,17 +808,17 @@
 TCondor 
-p
+P
 ython bi
@@ -823,17 +823,16 @@
 bindings
-.
 ',%0A     
@@ -1015,17 +1015,17 @@
 ntainer=
-%22
+'
 Brian Bo
@@ -1031,17 +1031,44 @@
 ockelman
-%22
+, Jason Patton, Tim Theisen'
 ,%0A      
@@ -1170,16 +1170,24 @@
 dor 
+classad 
 htc dhtc
 ',%0A 
@@ -1182,16 +1182,23 @@
 htc dhtc
+ condor
 ',%0A     
@@ -1552,32 +1552,33 @@
 cense',%0A        
+#
 'Operating Syste
@@ -1590,32 +1590,33 @@
 MacOS',%0A        
+#
 'Operating Syste
@@ -1681,43 +1681,16 @@
 OSIX
-',%0A        'Operating System :: Uni
+ :: Linu
 x',%0A
@@ -1778,16 +1778,63 @@
  :: 2',%0A
+        'Programming Language :: Python :: 3',%0A
         

Update setup.py to reflect current status of bindings in PyPI #6486