setup.py 2.08 KB
import os
import sys
import subprocess
from setuptools import setup, find_packages

here = os.path.abspath(os.path.dirname(__file__))
README = open(os.path.join(here, 'README.txt')).read()
CHANGES = open(os.path.join(here, 'CHANGES.txt')).read()
# test
requires=['pyramid==1.5.8',
          'SQLAlchemy==1.2.10',
          'transaction',
          'pyramid_tm',
          'pyramid_debugtoolbar',
          'zope.sqlalchemy==1.0',
          'waitress==1.1.0',
          'ziggurat-foundations==0.5.6',
          'cryptacular==1.4.1',
          'colander==1.4',
          'deform>=2.0a2',
          'pyramid_chameleon',
          'psycopg2',
          'alembic>=0.3.4',
          'pyramid_beaker==0.8',
          'pytz',
          'sqlalchemy-datatables==0.1.6',
          'recaptcha-client',
          'pyJasper==0.41',
          'informixdb==2.5', 
          'z3c.rml==3.5.0',
          'xlrd',
          'pyramid_rpc',
          'requests',
          'unoconv',
          'py3o.template',
          'qrcode'
         ]

if sys.argv[1:] and sys.argv[1] == 'develop-use-pip':
    bin_ = os.path.split(sys.executable)[0]
    pip = os.path.join(bin_, 'pip')
    for package in requires:
        cmd = [pip, 'install', package]
        subprocess.call(cmd)
    cmd = [sys.executable, sys.argv[0], 'develop']
    subprocess.call(cmd)
    sys.exit()

setup(name='esipkd',
      version='0.0',
      description='esipkd',
      long_description=README + '\n\n' +  CHANGES,
      classifiers=[
        "Programming Language :: Python",
        "Framework :: Pylons",
        "Topic :: Internet :: WWW/HTTP",
        "Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
        ],
      author='',
      author_email='',
      url='',
      keywords='web pyramid pylons',
      packages=find_packages(),
      include_package_data=True,
      zip_safe=False,
      install_requires=requires,
      tests_require=requires,
      test_suite="esipkd",
      entry_points = """\
      [paste.app_factory]
      main = esipkd:main
      [console_scripts]
      initialize_esipkd_db = esipkd.scripts.initializedb:main      
      """,
      )