setup.py 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/usr/bin/env python
  2. import os
  3. from fdfs_client import __version__
  4. try:
  5. from setuptools import setup, Extension
  6. except ImportError:
  7. from distutils.core import setup, Extension
  8. f = open(os.path.join(os.path.dirname(__file__), 'README.md'))
  9. long_description = f.read()
  10. f.close()
  11. sdict = {
  12. 'name' : 'fdfs_client-py',
  13. 'version' : __version__,
  14. 'description' : 'Python client for Fastdfs ver 4.06',
  15. 'long_description' : long_description,
  16. 'author' : 'scott yuan',
  17. 'author_email' : 'scottzer8@gmail.com',
  18. 'maintainer' : 'scott yuan',
  19. 'maintainer_email' : 'scottzer8@gmail.com',
  20. 'keywords' : ['Fastdfs', 'Distribute File System'],
  21. 'license' : 'GPLV3',
  22. 'packages' : ['fdfs_client'],
  23. 'classifiers' : [
  24. 'Development Status :: 1 - Production/Beta',
  25. 'Environment :: Console',
  26. 'Intended Audience :: Developers',
  27. 'License :: GPLV3',
  28. 'Operating System :: OS Independent',
  29. 'Programming Language :: Python'],
  30. 'ext_modules' : [Extension('fdfs_client.sendfile',
  31. sources = ['fdfs_client/sendfilemodule.c'])],
  32. }
  33. setup(**sdict)