Skip to content

Commit

Permalink
Adding dependency on pysqlite and hashlib for Python 2.4. Resolves ti…
Browse files Browse the repository at this point in the history
…cket 114.
  • Loading branch information
pedersen committed Sep 23, 2011
1 parent 15cb22e commit 76c9584
Showing 1 changed file with 39 additions and 34 deletions.
73 changes: 39 additions & 34 deletions devtools/templates/turbogears/setup.py_tmpl
Expand Up @@ -22,8 +22,46 @@ testpkgs=['WebTest >= 1.2.3',
'wsgiref',
'repoze.who-testutil >= 1.0.1',
]
install_requires=[
"TurboGears2 >= 2.1.2",
{{if mako == 'True'}}
"Mako",
{{else}}
"Genshi",
{{endif}}
{{if sqlalchemy == 'True'}}
"zope.sqlalchemy >= 0.4",
"repoze.tm2 >= 1.0a5",
"sqlalchemy",
{{endif}}
{{if sqlalchemy == 'True' and migrations == 'True'}}
"sqlalchemy-migrate",
{{endif}}
{{if ming == 'True'}}
"tgming",
{{endif}}
{{if auth == "sqlalchemy" or auth == "ming"}}
"repoze.what >= 1.0.8",
"repoze.who-friendlyform >= 1.0.4",
"repoze.what-pylons >= 1.0",
"repoze.who==1.0.19",
"tgext.admin >= 0.3.11",
{{endif}}
{{if auth == "sqlalchemy"}}
"repoze.what-quickstart",
"repoze.what.plugins.sql",
"tw.forms",
{{endif}}
{{if auth == "ming"}}
"sprox >= 0.7dev",
{{endif}}
]

if sys.version_info[:2] == (2,4):
testpkgs.extend(['hashlib', 'pysqlite'])
install_requires.extend(['hashlib', 'pysqlite'])

print install_requires

setup(
name='{{project}}',
Expand All @@ -32,43 +70,10 @@ setup(
author='',
author_email='',
#url='',
install_requires=[
"TurboGears2 >= 2.1.2",
{{if mako == 'True'}}
"Mako",
{{else}}
"Genshi",
{{endif}}
{{if sqlalchemy == 'True'}}
"zope.sqlalchemy >= 0.4",
"repoze.tm2 >= 1.0a5",
"sqlalchemy",
{{endif}}
{{if sqlalchemy == 'True' and migrations == 'True'}}
"sqlalchemy-migrate",
{{endif}}
{{if ming == 'True'}}
"tgming",
{{endif}}
{{if auth == "sqlalchemy" or auth == "ming"}}
"repoze.what >= 1.0.8",
"repoze.who-friendlyform >= 1.0.4",
"repoze.what-pylons >= 1.0",
"repoze.who==1.0.19",
"tgext.admin >= 0.3.11",
{{endif}}
{{if auth == "sqlalchemy"}}
"repoze.what-quickstart",
"repoze.what.plugins.sql",
"tw.forms",
{{endif}}
{{if auth == "ming"}}
"sprox >= 0.7dev",
{{endif}}
],
setup_requires=["PasteScript >= 1.7"],
paster_plugins={{egg_plugins}},
packages=find_packages(exclude=['ez_setup']),
install_requires=install_requires,
include_package_data=True,
test_suite='nose.collector',
tests_require=testpkgs,
Expand Down

0 comments on commit 76c9584

Please sign in to comment.