summaryrefslogtreecommitdiffstats
path: root/BeOS/README
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1999-01-12 20:30:23 (GMT)
committerGuido van Rossum <guido@python.org>1999-01-12 20:30:23 (GMT)
commit7a5f420e675cf7dcb88bf052b951d5ef946fac5b (patch)
tree88dfb56518e5709079e978b26626af9dec72dcef /BeOS/README
parent0039d7b4e6f07411f788dbcb52cd05d26fc7fec5 (diff)
downloadcpython-7a5f420e675cf7dcb88bf052b951d5ef946fac5b.zip
cpython-7a5f420e675cf7dcb88bf052b951d5ef946fac5b.tar.gz
cpython-7a5f420e675cf7dcb88bf052b951d5ef946fac5b.tar.bz2
Chris Herborth's first pass at making config and install
for BeOS better.
Diffstat (limited to 'BeOS/README')
-rw-r--r--BeOS/README55
1 files changed, 18 insertions, 37 deletions
diff --git a/BeOS/README b/BeOS/README
index a0f0dc8..989995a 100644
--- a/BeOS/README
+++ b/BeOS/README
@@ -8,6 +8,9 @@ What's Here?
ar-fake - A shell script used by the build process to emulate a "real"
POSIX ar command; helps to build the Python shared library.
+dl_export.h - A header defining the evil magic declaration decorations
+ required for dynamic loading.
+
linkcc - A shell script used by the build process to build the Python
shared library.
@@ -35,21 +38,7 @@ Python 1.5.2 and later will compile "out of the box" on BeOS), try this:
2) Configure with:
- AR=$(pwd)/BeOS/ar-fake RANLIB=: ./configure --verbose \
- --prefix=/boot/home/config --with-thread
-
- When configure is done, add this anywhere in config.h:
-
-#ifndef DL_EXPORT
-# define DL_EXPORT(RTYPE) __declspec(dllexport) RTYPE
-#endif
-#ifndef DL_IMPORT
-# ifdef USE_DL_EXPORT
-# define DL_IMPORT(RTYPE) __declspec(dllexport) RTYPE
-# else
-# define DL_IMPORT(RTYPE) __declspec(dllimport) RTYPE
-# endif
-#endif
+ ./configure --verbose --prefix=/boot/home/config --with-thread
3) Copy Modules/Setup.in to Modules/Setup.
@@ -68,22 +57,19 @@ Python 1.5.2 and later will compile "out of the box" on BeOS), try this:
operator _locale fcntl pwd grp select _socket errno crypt termios
audioop imageop rgbimg md5 timing rotor syslog curses new gdbm soundex
binascii parser cStringIO cPickle zlib
+
+ Note that some of these (readline, curses, gdbm, and zlib) require extra
+ libraries that aren't supplied with Python. If you don't have the extra
+ libs (you can probably get them from GeekGadgets), don't try to use
+ these modules; they won't compile.
-5) Make sure Modules/Makefile.pre has REALLIBRARY set to:
-
- REALLIBRARY=../libpython$(VERSION).so
+5) Make:
-6) Make:
+ make
- make OPT=-DUSE_DL_EXPORT CCSHARED=-UUSE_DL_EXPORT MACHDEP=beos
+6) Test:
- On PowerPC systems, you'll see lots of warnings about duplicate
- symbols when things get linked; don't worry about this, it's
- harmless (and should disappear soon).
-
-7) Test:
-
- make OPT=-DUSE_DL_EXPORT CCSHARED=-UUSE_DL_EXPORT MACHDEP=beos test
+ make test
Expect the following errors:
@@ -97,16 +83,11 @@ Python 1.5.2 and later will compile "out of the box" on BeOS), try this:
NOTE: On R4/x86, the pause() function is broken; expect the signal
module test to crash Python!
-8) Install:
-
- make OPT=-DUSE_DL_EXPORT CCSHARED=-UUSE_DL_EXPORT MACHDEP=beos nstall
+7) Install:
- This will fail trying to copy libpython1.5.a; at that point in the
- install, everything you "normally" need is installed (all the Python
- bits), and the stuff you need for compiling C-based modules is half-
- installed. This will be fixed before the 1.5.2 release.
+ make install
-9) Enjoy!
+8) Enjoy!
-- Chris Herborth (chrish@qnx.com)
- December 22, 1998
+- Chris Herborth (chrish@beoscentral.com)
+ January 12, 1999