Changeset 7630:cb2cdc9e8014 in orange


Ignore:
Timestamp:
02/09/11 17:00:20 (3 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
76ac67fe59d9cf6a85eeb84620d739757a9649c2
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/setup.py

    r7155 r7630  
    376376                      libraries=libraries 
    377377                      ) 
    378   
    379  
    380 pkg_re = re.compile("Orange/(.+?)/__init__.py") 
    381 packages = ["Orange"] + ["Orange." + pkg_re.findall(p)[0] for p in glob.glob("Orange/*/__init__.py")] 
     378 
     379import fnmatch 
     380matches = [] 
     381for root, dirnames, filenames in os.walk('Orange'): #Recursively find '__init__.py's 
     382  for filename in fnmatch.filter(filenames, '__init__.py'): 
     383      matches.append(os.path.join(root, filename)) 
     384packages = [pkg.rpartition('/__init__.py')[0].replace('/','.') for pkg in matches] 
     385 
    382386setup(cmdclass={"build_ext": pyxtract_build_ext, "install_lib": install_shared}, 
    383387      name ="Orange", 
     
    388392      maintainer = "Ales Erjavec", 
    389393      maintainer_email = "ales.erjavec@fri.uni-lj.si", 
    390       url = "http://www.ailab.si/orange", 
    391       download_url = "http://www.ailab.si/svn/orange/trunk", 
     394      url = "http://orange.biolab.si", 
     395      download_url = "http://orange.biolab.si/svn/orange/trunk", 
    392396      packages = packages + [".", 
    393397                             "OrangeCanvas",  
Note: See TracChangeset for help on using the changeset viewer.