PageRenderTime 56ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/sct-0.6/communitytools/setup.py

#
Python | 43 lines | 34 code | 3 blank | 6 comment | 1 complexity | 39c517b73eea7e3c0ab7d25f7b0e7f27 MD5 | raw file
Possible License(s): BSD-3-Clause
  1. #
  2. # Setup file for Sphene Community Tools
  3. # Provided by Dennis @ allymbrain.com:
  4. # http://allmybrain.com/2009/10/21/the-python-install-system-needs-an-overhaul/
  5. #
  6. import os
  7. from setuptools import setup, find_packages
  8. from finddata import find_package_data
  9. packages=find_packages('sphenecoll')
  10. package_data=find_package_data('sphenecoll')
  11. static = find_package_data('static','sphene')
  12. # not in correct format
  13. static_dict={} # dir -> files
  14. for path in static['sphene']:
  15. dir, file = os.path.split(path)
  16. dir = os.path.join('static', dir )
  17. files = static_dict.setdefault( dir, [] )
  18. files.append(os.path.join('static',path))
  19. setup(
  20. name='Sphene Community Tools',
  21. version='0.6',
  22. author = 'Herbert Poul',
  23. author_email = 'herbert.poul@gmail.com',
  24. url = 'http://sct.sphene.net/',
  25. description = 'SCT (Sphene Community Tools) is a collection of Django applications. It currently consists of a Wiki and Forum application which are applicable for communities, support forums, blogs, etc.',
  26. long_description = '''SCT (Sphene Community Tools) is a collection of Django applications that are
  27. designed to be easily pluggable into any Django project. It currently consists
  28. of a Wiki and a Forum application. It contains an example project that allows
  29. users to create a community Web site containing the Wiki and Board applications
  30. without any further coding/configuration changes.''',
  31. packages=packages,
  32. package_data=package_data,
  33. package_dir={'sphene':'sphenecoll/sphene'},
  34. # these scripts are only required before creating distribution... no need to install them.
  35. #scripts=['dist/scripts/make-messages.py', 'dist/scripts/compile-all-sph-messages.py' ],
  36. data_files=static_dict.items()
  37. )