Jump to content

User:Lesser Cartographies/sandbox/Vim Wiki Browser

From Wikipedia, the free encyclopedia
  • Started with Ubuntu Precise. setuptools not installed by default, requests too old. Restart.
  • Built python-3.2.2 from source.
  • Installed requests.
  • Installed python-mwapi, setup script needed patched.

 diff --git a/setup.py b/setup.py
 index c6ae0a8..6b66313 100644
 --- a/setup.py
 +++ b/setup.py
 @@ -1,4 +1,7 @@
 -from setuptools import setup
 +try:
 +    from setuptools import setup
 +except ImportError:
 +    from distutils.core import setup
 
  setup(
          name="python-mwapi",