1. python_mirrors
  2. tracker/roundup

Commits

Pradip Caulagi  committed 9dc50be Draft

Make roundup play nice with setup tools (for using with virtualenv)

  • Participants
  • Parent commits fa03ae7
  • Branches default

Comments (0)

Files changed (2)

File CHANGES.txt

View file
  • Ignore whitespace
 
 Fixed:
 
+- Make roundup play nice with setup tools (for using with virtualenv)
+  (Pradip Caulagi)
 - [minor] Template responsive: make demo.py work out of the box with it,
   by setting the static_files config.ini setting to "static". 
   Footer: link fixed and hardcoded last modfied date removed. (Bernhard Reiter)

File setup.py

View file
  • Ignore whitespace
 #! /usr/bin/env python
+# -*- coding: utf-8 -*-
 #
 # Copyright (c) 2001 Bizar Software Pty Ltd (http://www.bizarsoftware.com.au/)
 # This module is free software, and you may redistribute it and/or modify
 from roundup.dist.command.build import build, list_message_files
 from roundup.dist.command.bdist_rpm import bdist_rpm
 from roundup.dist.command.install_lib import install_lib
-from distutils.core import setup
+
+try:
+    from setuptools import setup
+except ImportError:
+    from distutils.core import setup
 
 import sys, os
 from glob import glob