Skip to content

Commit

Permalink
make ZServer a dependency for py2 only
Browse files Browse the repository at this point in the history
  • Loading branch information
pbauer authored and Michael Howitz committed Mar 23, 2018
1 parent 05e113f commit 39f9ccb
Showing 1 changed file with 22 additions and 12 deletions.
34 changes: 22 additions & 12 deletions setup.py
Expand Up @@ -15,6 +15,27 @@

from setuptools import setup, find_packages

import sys

INSTALL_REQUIRES = [
'setuptools',
'AccessControl',
'Acquisition',
'transaction',
'zExceptions',
'Zope2 >= 4.0.dev0',
'zope.component',
'zope.interface',
'zope.event',
]

PY2_ONLY = [
'ZServer',
]

if sys.version_info[0] == 2:
INSTALL_REQUIRES += PY2_ONLY

setup(
name='Products.SiteErrorLog',
version='4.1.dev0',
Expand All @@ -38,18 +59,7 @@
packages=find_packages('src'),
namespace_packages=['Products'],
package_dir={'': 'src'},
install_requires=[
'setuptools',
'AccessControl',
'Acquisition',
'transaction',
'zExceptions',
'Zope2 >= 4.0.dev0',
'ZServer',
'zope.component',
'zope.interface',
'zope.event',
],
install_requires=INSTALL_REQUIRES,
include_package_data=True,
zip_safe=False,
)

0 comments on commit 39f9ccb

Please sign in to comment.