GoboLinux Downloads Documentation Community Recipes Screenshots

GoboLinux Recipe & Package Search Tool

30 versions of Python.

ProgramAgeSizeByWWWSummary
Python 3.6.0-r5 882  1719 Ivan...
A high-level scripting language.
Python 3.5.2-r2 1082  1672 Luca...
A high-level scripting language.
Python 3.2-r2 1327  20432 Mich...
A high-level scripting language.
Python 3.1.2-r1 3406  20407 Mich...
A high-level scripting language.
Python 3.1.1-r1 3623  20466 Mich...
A high-level scripting language.
Python 3.1-r1 3673  20431 Mich...
A high-level scripting language.
Python 3.0.1-r1 3792  20530 Mich...
A high-level scripting language.
Python 3.0-r1 3792  20138 Mich...
A high-level scripting language.
Python 2.7.12-r1 954  1659 Xavi...
A high-level scripting language.
Python 2.7.9-r2 1327  2947 Hish...
A high-level scripting language.
Python 2.7-r1 3293  20194 Mich...
A high-level scripting language.
Python 2.6.6-r1 3251  20221 Mich...
A high-level scripting language.
view entry at GitHub | download recipe.bz2 file
Recipe
Resources/BuildDependencies
Resources/BuildInformation
Resources/Dependencies
Resources/Description
arm/01-cross.patch
arm/02-have_wchar.patch
arm/03-cross_dirs.patch
arm/03-ffitarget_build_fix.patch__
arm/03-ldflags.patch
arm/20061116152556-bf48b-cab1e7d1e54d14a8aab52f0c3b3073c93f75d4fc.gz.diff
arm/20061116152731-bf48b-b52dbbbbc3adece61496b161d8c22599caae2311.gz.diff
arm/20061116153039-bf48b-3470bc7e23e1dc39b2c85a8031b973e2254dd936.gz.diff
arm/20061116153137-bf48b-059af829d362b10bb5921367c93a56dbb51ef31b.gz.diff
arm/20061116153339-bf48b-6a742fb15b28564f9a1bc916c76a28dc672a9b2c.gz.diff
arm/20061116153503-bf48b-f8ea2a1da7a7a2fb664d54957a86624dff60338b.gz.diff
arm/20061116153622-bf48b-3f12d018bcb930b8d7a34fc3095efcc44fe3fa61.gz.diff
arm/20061116153658-bf48b-a838b4780998ef98ae4880c3916274d45b661c82.gz.diff
arm/20061116153814-bf48b-ce899248b77cd45e5bc97001488210aa391514f0.gz.diff
arm/20061116153938-bf48b-9b0d7f49495a3dcf7f6ee80289277abbe803febb.gz.diff
arm/20061116154042-bf48b-f452fe4b95085d8c1ba838bf302a6a48df3c1d31.gz.diff
arm/20061116154232-bf48b-d4e644f1969f3f04e221d5e3b5e489f78acd11f8.gz.diff
arm/20061116154309-bf48b-acfaf7ad5799a80fc6190252e2352b3dcb988644.gz.diff
arm/20061116154411-bf48b-cc7713382a7ac03ef935bd8aa80c6fcdf777d094.gz.diff
arm/20061116154434-bf48b-9c022e407c366c9f175e9168542ccc76eae9e3f0.gz.diff
arm/20061116154506-bf48b-4fcc91998e3f1666b39cb6245840e6cf754c0374.gz.diff
arm/20061116154926-bf48b-746aeff7f5a2db2f62538210b652f0830b162e21.gz.diff
arm/20061116155037-bf48b-3c2dbc5456021ca76405f35a34828b85d57b3159.gz.diff
arm/20061116155145-bf48b-d82ede1b43d20a0e046c394764a421076c08f821.gz.diff
arm/20061116155410-bf48b-540684d696df6057ee2c9c4e13e33fe450605ffa.gz.diff
arm/20061116155434-bf48b-23957f7f97456b4efac9a87a64ca6ec8fcfd812a.gz.diff
arm/20061116155615-bf48b-64f5018e975419b2d37c39f457c8732def3288df.gz.diff
arm/20061116155626-bf48b-7a4e50fb1cf5ff3481aaf7515a784621cbbdac6c.gz.diff
arm/20061116155820-bf48b-7861f48ea60593b90599e9fe6279f877273a1899.gz.diff
arm/20061116155925-bf48b-7d3a45788a0d83608d10e5c0a34f08b426d62e92.gz.diff
arm/20061116155958-bf48b-07f399e9f45750565635ca1bb155b0252949ef03.gz.diff
arm/20061116160247-bf48b-7db78fe2f80b3137ce349cf4314364768555ff50.gz.diff
arm/20061116160446-bf48b-13147a0728aaccf738b4374d683f9df02da85ceb.gz.diff
arm/20061116162044-bf48b-971237b3aabc31fc60fbd9c2be162ffa1c2d0d4e.gz.diff
arm/20061116162055-bf48b-23a2dd14933a2aee69f7cdc9f838e4b9c26c1eea.gz.diff
arm/20061116162106-bf48b-6689ca9dea07afbe8a77b7787a5c4e1642f803a1.gz.diff
arm/Recipe
Thu Nov 16 16:33:39 CET 2006  hanwen@lilypond.org
  * getpath.c: mingw patch: deal with drive letters and .exe suffix for
  executables.
diff -rN -u old-Python-2.5.cross/Modules/getpath.c new-Python-2.5.cross/Modules/getpath.c
--- old-Python-2.5.cross/Modules/getpath.c	2006-11-16 17:47:48.000000000 +0100
+++ new-Python-2.5.cross/Modules/getpath.c	2006-11-16 17:47:48.000000000 +0100
@@ -125,6 +125,14 @@
 #define LANDMARK "os.py"
 #endif
 
+#ifndef __MINGW32__
+#define IS_ABSOLUTE(x) (x[0] == SEP)
+#else /* __MINGW32__ */
+#define IS_ABSOLUTE(x) (x[0] == SEP || x[0] == ALTSEP\
+			|| (x[1] && x[1] == ROOTSEP\
+			    && x[2] && (x[2] == SEP || x[2] == ALTSEP)))
+#endif /* __MINGW32__ */
+
 static char prefix[MAXPATHLEN+1];
 static char exec_prefix[MAXPATHLEN+1];
 static char progpath[MAXPATHLEN+1];
@@ -135,7 +143,12 @@
 reduce(char *dir)
 {
     size_t i = strlen(dir);
-    while (i > 0 && dir[i] != SEP)
+    while (i > 0
+	   && dir[i] != SEP
+#ifdef ALTSEP
+	   && dir[i] != ALTSEP
+#endif /* ALTSEP */
+	   )
         --i;
     dir[i] = '\0';
 }
@@ -208,11 +221,16 @@
 joinpath(char *buffer, char *stuff)
 {
     size_t n, k;
-    if (stuff[0] == SEP)
+    if (IS_ABSOLUTE(stuff))
         n = 0;
     else {
         n = strlen(buffer);
-        if (n > 0 && buffer[n-1] != SEP && n < MAXPATHLEN)
+        if (n > 0
+	    && buffer[n-1] != SEP
+#ifdef ALTSEP
+	    && buffer[n-1] != ALTSEP
+#endif /* ALTSEP */
+	    && n < MAXPATHLEN)
             buffer[n++] = SEP;
     }
     if (n > MAXPATHLEN)
@@ -229,11 +247,16 @@
 static void
 copy_absolute(char *path, char *p)
 {
-    if (p[0] == SEP)
+    if (IS_ABSOLUTE(p))
         strcpy(path, p);
     else {
         getcwd(path, MAXPATHLEN);
-        if (p[0] == '.' && p[1] == SEP)
+        if (p[0] == '.'
+	    && (p[1] == SEP
+#ifdef ALTSEP
+		|| p[1] == ALTSEP
+#endif /* ALTSEP */
+		))
             p += 2;
         joinpath(path, p);
     }
@@ -245,7 +268,7 @@
 {
     char buffer[MAXPATHLEN + 1];
 
-    if (path[0] == SEP)
+    if (IS_ABSOLUTE(path))
         return;
     copy_absolute(buffer, path);
     strcpy(path, buffer);
@@ -393,13 +416,23 @@
 #endif
 #endif
 
-	/* If there is no slash in the argv0 path, then we have to
-	 * assume python is on the user's $PATH, since there's no
-	 * other way to find a directory to start the search from.  If
-	 * $PATH isn't exported, you lose.
-	 */
-	if (strchr(prog, SEP))
-		strncpy(progpath, prog, MAXPATHLEN);
+    /* If PROG is an absolute name, then we're done.  If PROG is not
+     * an absolute name and contains SEP/ALTSEP, then it must be
+     * reachable from CWD.  Otherwise, python is on the user's $PATH,
+     * since there's no other way to find a directory to start the
+     * search from.  If $PATH isn't exported, you lose.
+     */
+    if (IS_ABSOLUTE(prog))
+    	strncpy(progpath, prog, MAXPATHLEN);
+    else if (strchr(prog, SEP)
+#ifdef ALTSEP
+	     || strchr(prog, ALTSEP)
+#endif /* ALTSEP */
+	     )
+      {
+    	getcwd(progpath, MAXPATHLEN);
+	joinpath(progpath, prog);
+      }
 #ifdef __APPLE__
      /* On Mac OS X, if a script uses an interpreter of the form
       * "#!/opt/python2.3/bin/python", the kernel only passes "python"
@@ -415,6 +448,9 @@
        ;
 #endif /* __APPLE__ */
 	else if (path) {
+#ifdef __MINGW32__
+		char const *ext = strchr(prog, '.') ? "" : ".exe";
+#endif
 		while (1) {
 			char *delim = strchr(path, DELIM);
 
@@ -429,9 +465,11 @@
 				strncpy(progpath, path, MAXPATHLEN);
 
 			joinpath(progpath, prog);
+#ifdef __MINGW32__
+			strcat(progpath, ext);
+#endif
 			if (isxfile(progpath))
 				break;
-
 			if (!delim) {
 				progpath[0] = '\0';
 				break;
@@ -441,7 +479,7 @@
 	}
 	else
 		progpath[0] = '\0';
-	if (progpath[0] != SEP)
+	if (!IS_ABSOLUTE(progpath))
 		absolutize(progpath);
 	strncpy(argv0_path, progpath, MAXPATHLEN);
 	argv0_path[MAXPATHLEN] = '\0';
@@ -487,7 +525,7 @@
         while (linklen != -1) {
             /* It's not null terminated! */
             tmpbuffer[linklen] = '\0';
-            if (tmpbuffer[0] == SEP)
+            if (IS_ABSOLUTE(tmpbuffer))
                 /* tmpbuffer should never be longer than MAXPATHLEN,
                    but extra check does not hurt */
                 strncpy(argv0_path, tmpbuffer, MAXPATHLEN);
@@ -554,7 +592,7 @@
     while (1) {
         char *delim = strchr(defpath, DELIM);
 
-        if (defpath[0] != SEP)
+        if (!IS_ABSOLUTE(defpath))
             /* Paths are relative to prefix */
             bufsz += prefixsz;
 
@@ -599,7 +637,7 @@
         while (1) {
             char *delim = strchr(defpath, DELIM);
 
-            if (defpath[0] != SEP) {
+            if (!IS_ABSOLUTE(defpath)) {
                 strcat(buf, prefix);
                 strcat(buf, separator);
             }

Python 2.6.5-r1 3406  20203 Mich...
A high-level scripting language.
Python 2.6.4-r1 3553  20233 Mich...
A high-level scripting language.
Python 2.6.3-r1 3577  20209 Mich...
A high-level scripting language.
Python 2.6.2-r2 3676  20211 Mich...
A high-level scripting language.
Python 2.6.1-r1 3792  20433 Mich...
A high-level scripting language.
Python 2.6-r1 3792  20434 Mich...
A high-level scripting language.
Python 2.5.4-r1 3792  20411 Mich...
A high-level scripting language.
Python 2.5.3-r1 3792  20400 Mich...
A high-level scripting language.
Python 2.5.2-r3 3792  20433 Giam...
A high-level scripting language.
Python 2.5.1-r1 3792  20145 Isaa...
A high-level scripting language.
Python 2.5-r3 3792  20094 Andr...
A high-level scripting language.
Python 2.4.3-r1 3792  1128 Andr...
A high-level scripting language.
Python 2.4.2-r1 3792  1516 Andr...
A high-level scripting language.
Python 2.4.1-r1 3792  1491 Andr...
A high-level scripting language.
Python 2.4-r1 3792  1485 Andr...
A high-level scripting language.
Python 2.3.4-r1 3792  1101 Andr...
A high-level scripting language.
Python 2.3.3-r1 3792  1002
A high-level scripting language.
Python 2.3.2-r1 3792  832
A high-level scripting language.