Skip to contentSkip to conversation

Bugfixes for create-recipe easy_install handling.

PATCH New David Nyström 1 participant 1 message Feb 7, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Bugfixes for create-recipe easy_install handling.

1. Tell easy_install to always download, regardless of python install content.
2. Support https/ftp et.c. URLs provided by easy_install

---
 scripts/create-recipe |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
scripts/create-recipe +3 -3
index 1b10e1b..5613e92 100755
@@ -1918,9 +1918,9 @@ if ( -e "$dir/setup.py" ) {
 	    if ($recurse_python == 1) {
 		foreach (@rawpythondeps) {
 		    my $ptempdir = tempdir();
-		    $purl = `easy_install -eb $ptempdir "$_" 2>/dev/null`;
-		    $purl =~ s/#.*//;
-		    @purllist = $purl =~ m/Downloading (http:\/\/.*\n)/g;
+		    $purl = `easy_install -aeb $ptempdir "$_" 2>/dev/null`;
+		    $purl =~ s/#.*//g;
+		    @purllist = $purl =~ m/Downloading (.*:\/\/.*\n)/g;
 		    chomp(@purllist);
 		    
 		    # Remove empty lines
Signature · 1 line
1.7.9.5