Browse Source

fix up module paths

Michael van Elst 22 years ago
parent
commit
ab5d4856f7
1 changed files with 5 additions and 1 deletions
  1. 5 1
      python/python.spec

+ 5 - 1
python/python.spec

@@ -33,7 +33,7 @@ Distribution: OpenPKG [BASE]
 Group:        Language
 License:      GPL
 Version:      2.2.3
-Release:      20030531
+Release:      20030610
 
 #   list of sources
 Source0:      ftp://ftp.python.org/pub/python/%{version}/Python-%{version}.tgz
@@ -67,7 +67,11 @@ AutoReqProv:  no
     %{l_shtool} subst \
         -e 's;altinstall bininstall maninstall;altinstall maninstall;' \
         -e 's;python$(VERSION);python;g' \
+        -e 's;"\$(PYTHONPATH)";"%{l_prefix}/lib/python:%{l_prefix}/lib/python/lib-dynload";g' \
         Makefile.pre.in
+    %{l_shtool} subst \
+        -e 's;\(lib/python"\) *VERSION;\1;g' \
+        Modules/getpath.c
 
 %build
     CC="%{l_cc}" \