Skip to content

Commit 16f0b02

Browse files
committed
Tagging pyutilib.virtualenv 4.5.1
1 parent fe0fb9d commit 16f0b02

File tree

4 files changed

+25
-25
lines changed

4 files changed

+25
-25
lines changed

CHANGELOG.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
pyutilib.virtualenv CHANGELOG
33
===============================
44

5+
-------------------------------------------------------------------------------
6+
4.5.1
7+
-------------------------------------------------------------------------------
8+
9+
- Bug fix to ensure that the proper branch is checked out.
10+
511
-------------------------------------------------------------------------------
612
4.5
713
-------------------------------------------------------------------------------

pyutilib/virtualenv/header.py

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -510,14 +510,16 @@ def perform_install(self, dir=None, install=True, preinstall=False):
510510
print("-----------------------------------------------------------------")
511511
print(" Installing branch")
512512
print(" Checking out source for package "+self.name)
513-
print(" %s %s" % (str(using_git), str(self.root)))
513+
#print(" %s %s" % (str(using_git), str(self.root)))
514514
if self.local:
515515
print(" Package dir: "+self.local)
516516
elif using_git and not self.root is None:
517517
if '%23' in self.root:
518-
self.root = self.root.split('%23')[0]
518+
self.root, self.branch = self.root.split('%23')
519519
elif '#' in self.root:
520-
self.root = self.root.split('#')[0]
520+
self.root, self.branch = self.root.split('#')
521+
else:
522+
self.branch = None
521523
print(" Git dir: "+self.root)
522524
else:
523525
print(" Subversion dir: "+self.pkgdir)
@@ -527,16 +529,11 @@ def perform_install(self, dir=None, install=True, preinstall=False):
527529
elif using_git and not self.root is None and '.git' in self.root:
528530
print("-----------------------------------------------------------------")
529531
try:
530-
if '%23' in self.root:
531-
branch= ['-b', self.root.split('%23')[1]]
532-
url= self.root.split('%23')[0]
533-
elif '#' in self.root:
534-
branch= ['-b', self.root.split('#')[1]]
535-
url= self.root.split('#')[0]
536-
else:
532+
if self.branch is None:
537533
branch = []
538-
url= self.root
539-
self.run([self.git, 'clone'] + branch + [url, dir])
534+
else:
535+
branch= ['-b', self.branch]
536+
self.run([self.git, 'clone'] + branch + [self.root, dir])
540537
except OSError:
541538
err,tb = sys.exc_info()[1:3] # BUG?
542539
print("")

pyutilib/virtualenv/vpy_install.py

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3835,14 +3835,16 @@ def perform_install(self, dir=None, install=True, preinstall=False):
38353835
print("-----------------------------------------------------------------")
38363836
print(" Installing branch")
38373837
print(" Checking out source for package "+self.name)
3838-
print(" %s %s" % (str(using_git), str(self.root)))
3838+
#print(" %s %s" % (str(using_git), str(self.root)))
38393839
if self.local:
38403840
print(" Package dir: "+self.local)
38413841
elif using_git and not self.root is None:
38423842
if '%23' in self.root:
3843-
self.root = self.root.split('%23')[0]
3843+
self.root, self.branch = self.root.split('%23')
38443844
elif '#' in self.root:
3845-
self.root = self.root.split('#')[0]
3845+
self.root, self.branch = self.root.split('#')
3846+
else:
3847+
self.branch = None
38463848
print(" Git dir: "+self.root)
38473849
else:
38483850
print(" Subversion dir: "+self.pkgdir)
@@ -3852,16 +3854,11 @@ def perform_install(self, dir=None, install=True, preinstall=False):
38523854
elif using_git and not self.root is None and '.git' in self.root:
38533855
print("-----------------------------------------------------------------")
38543856
try:
3855-
if '%23' in self.root:
3856-
branch= ['-b', self.root.split('%23')[1]]
3857-
url= self.root.split('%23')[0]
3858-
elif '#' in self.root:
3859-
branch= ['-b', self.root.split('#')[1]]
3860-
url= self.root.split('#')[0]
3861-
else:
3857+
if self.branch is None:
38623858
branch = []
3863-
url= self.root
3864-
self.run([self.git, 'clone'] + branch + [url, dir])
3859+
else:
3860+
branch= ['-b', self.branch]
3861+
self.run([self.git, 'clone'] + branch + [self.root, dir])
38653862
except OSError:
38663863
err,tb = sys.exc_info()[1:3] # BUG?
38673864
print("")

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def read(*rnames):
2222

2323

2424
setup(name="pyutilib.virtualenv",
25-
version='4.5',
25+
version='4.5.1',
2626
maintainer='William E. Hart',
2727
maintainer_email='wehart@sandia.gov',
2828
url = 'https://software.sandia.gov/svn/public/pyutilib/pyutilib.virtualenv',

0 commit comments

Comments
 (0)