Fixed setup.py, changed readme.
This commit is contained in:
parent
9e2bc4e16f
commit
dc54ef5573
@ -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
|
||||
-----------------------
|
||||
|
10
setup.py
10
setup.py
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user