[tahoe-dev] building and pre-existing dependencies

Greg Troxel gdt at ir.bbn.com
Fri Jul 23 01:51:20 UTC 2010


I am trying to package tahoe for pkgsrc, the native packaging system on
NetBSD and Dragonfly, also portable to Darwin, Linux, Solaris, OpenBSD,
FreeBSD, IRIX, AIX, and a few others.

I don't understand how setup.py decides if a particular python package
is already present or needs to be downloaded and built.  The pkgsrc way
is to package all the dependencies and express those in the config file,
and then depend on them.  The framework so far says:

=> Build dependency unzip-[0-9]*: found unzip-6.0
=> Build dependency ccache-[0-9]*: found ccache-2.4
=> Build dependency checkperms>=1.1: found checkperms-1.11
=> Full dependency py26-twisted: found py26-twisted-10.0.0
=> Full dependency py26-asn1: found py26-asn1-0.0.11a
=> Full dependency py26-crypto: found py26-crypto-2.1.0
=> Full dependency py26-cryptopp: found py26-cryptopp-0.5.19nb1
=> Full dependency py26-setuptools>=0.6c9: found py26-setuptools-0.6c11
=> Full dependency python26>=2.6: found python26-2.6.5nb1

But then setup.py build invokes

Searching for pycrypto>=2.0.1
Reading http://tahoe-lafs.org/source/tahoe-lafs/deps/tahoe-dep-sdists/
Reading http://tahoe-lafs.org/source/tahoe-lafs/deps/tahoe-lafs-dep-eggs/
Best match: pycrypto 2.1.0
Downloading http://tahoe-lafs.org/source/tahoe-lafs/deps/tahoe-dep-sdists/pycryp
to-2.1.0.tar.bz2
Processing pycrypto-2.1.0.tar.bz2
Running pycrypto-2.1.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-YtA_pY
/pycrypto-2.1.0/egg-dist-tmp-4vw6Y7

but python finds it:

gdt 519 /usr/pkgsrc/filesystems/tahoe-lafs > python2.6
Python 2.6.5 (r265:79063, Jul 16 2010, 15:06:40) 
[GCC 4.1.3 20080704 prerelease (NetBSD nb2 20081120)] on netbsd5
Type "help", "copyright", "credits" or "license" for more information.
>>> import Crypto
>>> 

Any hints about the mechanisms the build script uses to decide if a
prereq is already there would be appreciated.

(I was able to build and run 1.7.1 by hand on NetBSD/i386, and connect
to the testgrid.)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
URL: <http://tahoe-lafs.org/pipermail/tahoe-dev/attachments/20100722/08b886f9/attachment.asc>


More information about the tahoe-dev mailing list