Changeset 9041:646cb7232942 in orange


Ignore:
Timestamp:
09/28/11 17:18:37 (3 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
3002af94e11582fc895e132e4c3b4a0eaadf0e9e
Message:

Removed setupegg.py file.
Moved the 'import setuptools' statement in the setup.py script (only gets used if USE_SETUPTOOLS env variable is set).

Location:
orange
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • orange/setup.py

    r9040 r9041  
     1#!usr/bin/env python 
     2 
     3import os, sys 
     4have_setuptools = False 
     5 
     6if "USE_SETUPTOOLS" in os.environ: 
     7    try: 
     8        from setuptools import setup 
     9        have_setuptools = True 
     10    except ImportError: 
     11        have_setuptools = False 
     12         
    113import distutils.core 
    214from distutils.core import setup 
     
    719from distutils.unixccompiler import UnixCCompiler 
    820 
    9 import os, sys, re 
     21import re 
    1022import glob 
    1123 
     
    2941    extra_link_args = "-headerpad_max_install_names -undefined dynamic_lookup -lstdc++ -lorange_include".split() 
    3042elif sys.platform == "win32": 
    31     extra_compile_args = ["/EHsc"] 
     43    extra_compile_args = ["-EHsc"] 
    3244    extra_link_args = [] 
    3345elif sys.platform.startswith("linux"): 
     
    462474      matches.append(os.path.join(root, filename)) 
    463475packages = [os.path.dirname(pkg).replace(os.path.sep, '.') for pkg in matches] 
    464  
    465 have_setuptools = getattr(distutils.core, "have_setuptools", False) 
    466476 
    467477if have_setuptools: 
Note: See TracChangeset for help on using the changeset viewer.