Changeset 2384
- Timestamp:
- Feb 22, 2010 12:54:39 AM (11 years ago)
- Location:
- coopr.misc/trunk/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
coopr.misc/trunk/util/coopr.py
r2273 r2384 35 35 self.add_repository('coopr.'+pkg, root='https://projects.coin-or.org/svn/CoinBazaar/projects/coopr.'+pkg, dev=True, username=os.environ.get('COINOR_USERNAME',None)) 36 36 37 def install_packages(self, options): 38 Installer.install_packages(self, options) 39 if sys.version_info[:2] < (2,5): 40 print "" 41 print "-----------------------------------------------------------------" 42 print " WARNING: Most Coopr packages will only work with Python 2.5 or" 43 print " newer. You have installed Coopr with:" 44 print sys.version 45 print "-----------------------------------------------------------------" 46 47 print "" 37 48 38 49 def create_installer(): -
coopr.misc/trunk/util/coopr_install
r2341 r2384 2706 2706 #print versions 2707 2707 else: 2708 output = urllib2.urlopen(svndir, timeout=30).read() 2708 if sys.version_info[:2] <= (2,5): 2709 output = urllib2.urlopen(svndir).read() 2710 else: 2711 output = urllib2.urlopen(svndir, timeout=30).read() 2709 2712 if output=="": 2710 2713 return None … … 2836 2839 rootdir_output = commands.getoutput('svn ls ' + self.config.root) 2837 2840 else: 2838 rootdir_output = urllib2.urlopen(self.config.root, timeout=30).read() 2841 if sys.version_info[:2] <= (2,5): 2842 rootdir_output = urllib2.urlopen(self.config.root).read() 2843 else: 2844 rootdir_output = urllib2.urlopen(self.config.root, timeout=30).read() 2839 2845 try: 2840 2846 self.trunk = self.config.root+'/trunk' … … 3641 3647 file = os.path.dirname(self.config_file)+"/"+file 3642 3648 try: 3643 output = urllib2.urlopen(file, timeout=30).read() 3649 if sys.version_info[:2] <= (2,5): 3650 output = urllib2.urlopen(file).read() 3651 else: 3652 output = urllib2.urlopen(file, timeout=30).read() 3644 3653 except Exception, err: 3645 3654 print "Problems opening configuration url:",file … … 3855 3864 self.add_repository('coopr.'+pkg, root='https://projects.coin-or.org/svn/CoinBazaar/projects/coopr.'+pkg, dev=True, username=os.environ.get('COINOR_USERNAME',None)) 3856 3865 3866 def install_packages(self, options): 3867 Installer.install_packages(self, options) 3868 if sys.version_info[:2] < (2,5): 3869 print "" 3870 print "-----------------------------------------------------------------" 3871 print " WARNING: Most Coopr packages will only work with Python 2.5 or" 3872 print " newer. You have installed Coopr with:" 3873 print sys.version 3874 print "-----------------------------------------------------------------" 3875 3876 print "" 3857 3877 3858 3878 def create_installer():
Note: See TracChangeset
for help on using the changeset viewer.