m_lib requires Python2; preferred versions are 2.6 or 2.7.
+Installation script setup.py requires setuptools. If you don't have it
+installed setup.py will try to download and install it.
+
To install the library from sources system-wide run run the following
command:
#! /usr/bin/env python
-from distutils.core import setup
+try:
+ from ez_setup import use_setuptools
+ use_setuptools()
+ from setuptools import setup
+ is_setuptools = True
+except ImportError:
+ from distutils.core import setup
+ is_setuptools = False
+
+kw = {}
+if is_setuptools:
+ kw['extras_require'] = {
+ 'Mk4py': ['Mk4py'],
+ 'ZODB': ['ZODB'],
+ 'mx': ['mx.DateTime', 'mx.Misc'],
+ }
setup(name = "m_lib",
version = "2.1.0",
"m_lib.net", "m_lib.net.ftp", "m_lib.net.www",
"m_lib.pbar", "m_lib.rus",
],
+ **kw
)