apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philip M. Gollucci" <pgollu...@ridecharge.com>
Subject python3.1
Date Fri, 21 May 2010 04:23:12 GMT
Howdy,

So
http://docs.python.org/release/3.0.1/whatsnew/3.0.html#porting-to-python-3-0

specifically says not to try to
if 2.x
 stuff
else 3.x
 other stuff
fi

Attached is a diff for gen-build.py using 2to3. I'm not exactly sure how
to fanagle this without duplicating the into 2 files gen-build2.py and
gen-build3.py.  configure.in would need to me modded to call the right
one based on the python version.

I'm looking at this specifically b/c
http://www.freebsd.org/cgi/query-pr.cgi?pr=146621&cat=

Also you need this diff to build/buildcheck.sh
$ svn diff
Index: buildcheck.sh
===================================================================
--- buildcheck.sh       (revision 946860)
+++ buildcheck.sh       (working copy)
@@ -10,7 +10,7 @@
 echo "           to build APR from SVN."
 exit 1
 else
-py_version=`python -c 'import sys; print sys.version' 2>&1|sed 's/ .*//;q'`
+py_version=`python -c 'import sys; print(sys.version)' 2>&1|sed 's/
.*//;q'`
 echo "buildconf: python version $py_version (ok)"
 fi





-- 
------------------------------------------------------------------------
Philip M. Gollucci (pgollucci@ridecharge.com)
p: 703.549.2050x206, did: 703.579.6947
Senior System Admin - RideCharge, Inc.  http://ridecharge.com
1024D/DB9B8C1C B90B FBC3 A3A1 C71A 8E70  3F8C 75B8 8FFB DB9B 8C1C

Work like you don't need the money,
love like you'll never get hurt,
and dance like nobody's watching.

Mime
View raw message