Samuel M. Smith wrote: > How do I get it to include the g77 install which it needs to build?
I'm not sure I understand your question. bdist_mpkg creates a binary package from a python package created with distutils, so it doesn't need to include the compiler. However, you may be asking about shared libs that come with g77. In that case, I don't think you can get it to include them. This leaves two options: 1) Package up the required libs another way, as a tarball or whatever. 2) statically link everything that isn't a system library --that's what I did for matplotlib It's also possible to include the shared libs in a package, but I don't think bdist_mpkg does that for you. However, it's built on the py2app machinery, which can include shared libs in a application bundle, so it may be possible. Charles Moad created a matplotlib package that includes the shared libs required, you might try to find out how he did it. http://sda.iu.edu/projects.html Also be sure to check out Robert Kern's MacEnthon project as well. http://www.scipy.org/wikis/featurerequests/MacEnthon -Chris > On 12 Aug, 2005, at 13:47, Chris Barker wrote: > >> >> >> Samuel M. Smith wrote: >> >>> The gcc 3.3 issue was the key. Thanks for help. >>> >>> Below is a list of what I did. >>> >>> Could someone take these directions and create a pkg installer for >>> scipy? So others can just double click to install? >>> >> >> Great idea..why not you? py2app bdist_mpkg is fabulous. If you can run: >> >> python setup.py build >> >> then you should be able to run >> >> bdist_mpkg >> >> and have it build a package for you. The trick is shared libs. When I >> did this for matplotlib, I ended up making sure the libs it needed were >> statically linked. >> >> -good luck! >> >> >> >>> ****************** >>> scipy installation instruction for framework python 2.4.1 on OS X >>> 10.4.2 >>> >>> Get the following files >>> http://pythonmac.org/packages/Numeric-23.7-py2.4-macosx10.3.zip >>> http://pythonmac.org/packages/numarray-1.1.1-py2.4-macosx10.3.zip >>> http://prdownloads.sf.net/hpc/g77v3.4-bin.tar.gz?download >>> http://www.fftw.org/fftw-2.1.5.tar.gz >>> http://prdownloads.sourceforge.net/aquaterm/AquaTerm1.0.b2.dmg >>> http://prdownloads.sourceforge.net/gnuplot/Gnuplot-4.0.0.dmg >>> http://ipython.scipy.org/tmp/scipy_cvs_2005-07-29.tgz >>> >>> Make sure framework python 2.41 is default python by putting >>> /usr/local/bin at the front of shell PATH variable >>> >>> Install Numeric 23.7 from pkg installer >>> Install numarray 1.1.1 from pkg installer >>> >>> Set default gcc compiler to version 3.3 this must be so for >>> compatibility with g77 fortran compiler used in scipy >>> >>> >>>> sudo gcc_select 3.3 >>>> >>> >>> Install g77 3.4 >>> >>>> sudo tar -xvf g77v3.4-bin.tar -C / >>>> >>> >>> Install fftw 2.1.5 >>> >>> >>>> tar -xvzf fftw-2.1.5.tar.gz (or tar -xvf if it has already been >>>> >>> gunzipped) >>> >>>> cd fftw* >>>> ./configure >>>> make >>>> sudo make install >>>> >>> >>> >>> Install F2PY 2.1.5 >>> >>>> tar -xvzf F2PY-2-latest.tar.gz >>>> cd F2PY* >>>> sudo python setup.py install >>>> >>> >>> Install AquaTerm 1.0b2 from pkg installer >>> >>> Install GnuPlot 4.0 from pkg installer >>> >>> Untar the scipy_cvs_2005_07_29.tgx >>> cd to the scipy directory >>> Build and Install scipy >>> >>> >>>> python setup.py build >>>> sudo python setup.py install >>>> >>> >>> Test >>> >>>> python >>>> >>>>>> import scipy >>>>>> scipy.test() >>>>>> >>> >>> Expect that some tests will fail. The test function should complete OK. >>> >>> ******************************************** >>> >>> >>> _______________________________________________ >>> Pythonmac-SIG maillist - Pythonmac-SIG@python.org >>> http://mail.python.org/mailman/listinfo/pythonmac-sig >>> >> >> -- >> Christopher Barker, Ph.D. >> Oceanographer >> >> NOAA/OR&R/HAZMAT (206) 526-6959 voice >> 7600 Sand Point Way NE (206) 526-6329 fax >> Seattle, WA 98115 (206) 526-6317 main reception >> >> [EMAIL PROTECTED] >> _______________________________________________ >> Pythonmac-SIG maillist - Pythonmac-SIG@python.org >> http://mail.python.org/mailman/listinfo/pythonmac-sig >> > > ********************************************************************** > Samuel M. Smith Ph.D. > 2966 Fort Hill Road > Eagle Mountain, Utah 84043 > 801-768-2768 voice > 801-768-2769 fax > ********************************************************************** > "The greatest source of failure and unhappiness in the world is > giving up what we want most for what we want at the moment" > ********************************************************************** > -- Christopher Barker, Ph.D. Oceanographer NOAA/OR&R/HAZMAT (206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [EMAIL PROTECTED] _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig