[Zope-Perl] build and test - minor patches for zope-perl-0.1.a5

Joseph Wayne Norton norton@arseed.co.jp
Fri, 08 Sep 2000 13:22:35 +0900


Gisle -

I'm building and installing zope-perl by inserting a hard-coded path
in the setup.py and Makefile.PL files for my perl and python
interperters (instead of relying on my environment path).  The patches
below should be compatible with both installation options.  Please
review and if possible incorporate into the next release.

thanks,

- joe

diff -c setup.py.orig setup.py
*** setup.py.orig       Fri Sep  1 02:31:21 2000
--- setup.py    Fri Sep  8 12:49:45 2000
***************
*** 57,66 ****
  p.close()
  
  if not isfile("perlxsi.c"):
!    system("perl -MExtUtils::Embed -e xsinit")
  if not isfile("try_perlapi.c") or \
       getmtime("try_perlapi.c") < getmtime("try_perlapi.pl"):
!    system("perl try_perlapi.pl")
  
  
  from distutils.core import setup, Extension
--- 57,66 ----
  p.close()
  
  if not isfile("perlxsi.c"):
!    system(perl + " -MExtUtils::Embed -e xsinit")
  if not isfile("try_perlapi.c") or \
       getmtime("try_perlapi.c") < getmtime("try_perlapi.pl"):
!    system(perl + " try_perlapi.pl")
  
  
  from distutils.core import setup, Extension

diff -c test.py.orig test.py
*** test.py.orig        Mon Aug 28 22:28:28 2000
--- test.py     Fri Sep  8 12:54:13 2000
***************
*** 12,18 ****
        for i in range(20 - len(f)):
                sys.stdout.write(".")
  
!       p = os.popen("python " + f)
  
        ok = 1

--- 12,18 ----
        for i in range(20 - len(f)):
                sys.stdout.write(".")
  
!       p = os.popen(sys.executable + " " + f)
  
        ok = 1