Fixed setup.py, changed readme.

This commit is contained in:
Oskar Hahn 2014-03-28 19:38:42 +01:00 committed by Norman Jäckel
parent 9e2bc4e16f
commit dc54ef5573
2 changed files with 9 additions and 6 deletions

View File

@ -67,6 +67,11 @@ Installation on GNU/Linux or Mac OS X
OpenSlides will install all required python packages (see
requirements_production.txt).
When you use python 2.6 you have to add the argument '--allow-external
argparse' to pip.
$ pip install --allow-external argparse openslides
Installation on Windows
-----------------------

View File

@ -2,6 +2,7 @@
# -*- coding: utf-8 -*-
import sys
import re
from setuptools import setup, find_packages
@ -12,13 +13,10 @@ with open('README.rst') as readme:
long_description = readme.read()
dependency_line = re.compile('[^#-]')
with open('requirements_production.txt') as requirements_production:
install_requires = requirements_production.readlines()
# For Python 2.6 support
if sys.version_info[1] == 6:
install_requires.append('argparse>=1.2,<1.3')
install_requires = [line for line in requirements_production.readlines()
if dependency_line.match(line)]
setup(