Changeset 10881:f22adc7ab645 in orange for setup.py


Ignore:
Timestamp:
05/21/12 13:41:08 (2 years ago)
Author:
mitar
Branch:
default
Message:

Use current version in documentation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • setup.py

    r10880 r10881  
    11#!usr/bin/env python 
    22 
    3 import distribute_setup 
    4 distribute_setup.use_setuptools() 
     3try: 
     4    import distribute_setup 
     5    distribute_setup.use_setuptools() 
     6except ImportError: 
     7    # For documentation we load setup.py to get version 
     8    # so it does not matter if importing fails 
     9    pass 
    510 
    611import glob, os, sys, types 
     
    9297import imp 
    9398try: 
    94     orangeqt_setup = imp.load_source('orangeqt_setup', 'source/orangeqt/setup.py') 
     99    orangeqt_setup = imp.load_source('orangeqt_setup', os.path.join(os.path.dirname(__file__), 'source/orangeqt/setup.py')) 
    95100    build_pyqt_ext = orangeqt_setup.build_pyqt_ext 
    96101except ImportError: 
Note: See TracChangeset for help on using the changeset viewer.