Changeset 10383:7326088caccf in orange


Ignore:
Timestamp:
02/27/12 14:29:44 (2 years ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Read version string from a 'version' file if it exists.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • setup.py

    r10366 r10383  
    541541                      libraries=libraries 
    542542                      ) 
    543  
     543     
    544544import fnmatch 
    545545matches = [] 
     
    551551      matches.append(os.path.join(root, filename)) 
    552552packages = [os.path.dirname(pkg).replace(os.path.sep, '.') for pkg in matches] 
     553 
     554 
     555default_version = "2.5a3" 
     556############################################ 
     557# Try to get the hg revision. Do 
     558#     $ hg parent --template="2.5a3-r{rev} > version 
     559# before running setup.py (note the example shown does  
     560# not conform to StrictVersion needed by bdist_msi).  
     561############################################ 
     562if os.path.exists("version"): 
     563    f = open("version") 
     564    version = f.read() 
     565else: 
     566    version = default_version 
     567     
    553568 
    554569setup(cmdclass={"build_ext": pyxtract_build_ext, 
     
    556571                "install": my_install}, 
    557572      name ="Orange", 
    558       version = "2.5a3", 
     573      version = version, 
    559574      description = "Machine learning and interactive data mining toolbox.", 
    560575      author = "Bioinformatics Laboratory, FRI UL", 
Note: See TracChangeset for help on using the changeset viewer.