setup.py 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. try:
  2. from setuptools import setup
  3. except ImportError:
  4. from distutils.core import setup
  5. import os
  6. DOC_DIR = 'doc'
  7. DIST_DIR = 'dist'
  8. # For Python 3 compatibility, we can't use execfile; this is 2to3's conversion:
  9. exec(compile(open("src/py4j/version.py").read(),
  10. "src/py4j/version.py", 'exec'))
  11. VERSION = __version__ # noqa
  12. RELEASE = 'py4j-' + VERSION
  13. JAR_FILE = 'py4j' + VERSION + '.jar'
  14. # Note: please do "ant python-light-release" before doing setup.py sdist.
  15. # Otherwise the jar files won't be created
  16. JAR_FILE_PATH = os.path.join('py4j-java', JAR_FILE)
  17. setup(
  18. name="py4j",
  19. packages=['py4j', 'py4j.tests'],
  20. package_dir={'': 'src'},
  21. data_files=[('share/py4j', [JAR_FILE_PATH])],
  22. version=VERSION,
  23. description='Enables Python programs to dynamically access arbitrary '
  24. 'Java objects',
  25. long_description='Py4J enables Python programs running in a Python '
  26. 'interpreter to dynamically '
  27. 'access Java objects in a Java Virtual Machine. '
  28. 'Methods are called as if the Java '
  29. 'objects resided in the Python interpreter and Java '
  30. 'collections can be accessed '
  31. 'through standard Python collection methods. Py4J also '
  32. 'enables Java programs to call back Python objects.',
  33. url="https://www.py4j.org/",
  34. author="Barthelemy Dagenais",
  35. author_email="barthelemy@infobart.com",
  36. license="BSD License",
  37. classifiers=[
  38. 'Development Status :: 4 - Beta',
  39. 'Intended Audience :: Developers',
  40. 'License :: OSI Approved :: BSD License',
  41. 'Operating System :: OS Independent',
  42. 'Programming Language :: Python',
  43. 'Programming Language :: Python :: 2',
  44. 'Programming Language :: Python :: 2.6',
  45. 'Programming Language :: Python :: 2.7',
  46. 'Programming Language :: Python :: 3',
  47. 'Programming Language :: Python :: 3.3',
  48. 'Programming Language :: Java',
  49. 'Topic :: Software Development :: Libraries',
  50. 'Topic :: Software Development :: Object Brokering',
  51. ],
  52. )