--install-option=-O2
-argparse; python_version == '2.6'
-SQLObject>=2.2.1; python_version >= '2.6' and python_version < '3.0'
+SQLObject>=2.2.1; python_version >= '2.7' and python_version < '3.0'
SQLObject>=3.0.0; python_version >= '3.4'
m_lib.defenc>=1.0
pip install --trusted-host phdru.name --find-links=http://phdru.name/Software/Python/ --install-option='-O2' m_librarian
-For Python 2.6 the command is easy_install.
-
Installation from sources
=========================
#!/usr/bin/env python
-import sys
from imp import load_source
from os.path import abspath, dirname, join
try:
from setuptools import setup
- is_setuptools = True
except ImportError:
from distutils.core import setup
- is_setuptools = False
-
-kw = {}
-if is_setuptools:
- kw['install_requires'] = ['SQLObject>=2.2.1', 'm_lib.defenc>=1.0']
- if (sys.version_info[:2] == (2, 6)):
- kw['install_requires'].append('argparse')
versionpath = join(abspath(dirname(__file__)), 'm_librarian', '__version__.py')
load_source('m_librarian_version', versionpath)
},
scripts=['scripts/ml-import.py', 'scripts/ml-initdb.py',
'scripts/ml-search.py'],
- **kw
)
[tox]
minversion = 1.8
toxworkdir={homedir}/.tox/m_librarian
-envlist = {py26,py27,py34},{py27,py34}-flake8
+envlist = {py27,py34},{py27,py34}-flake8
# Base test environment settings
[testenv]
commands =
python -m pytest --cov=m_librarian
-[testenv:py26]
-commands = {[general]commands}
-
[testenv:py27]
commands = {[general]commands}