From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yegor Yefremov Date: Wed, 14 Dec 2011 12:37:55 +0100 Subject: [Buildroot] [PATCH] New package: python-dpkt In-Reply-To: <20111214114650.539556ba@skate> References: <1323858932-10219-1-git-send-email-yegorslists@googlemail.com> <4EE87CC9.1040809@visionsystems.de> <20111214114650.539556ba@skate> Message-ID: <4EE88A93.3090409@visionsystems.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Am 14.12.2011 11:46, schrieb Thomas Petazzoni: > Le Wed, 14 Dec 2011 11:39:05 +0100, > Yegor Yefremov a ?crit : > >> I have following problem building this package: >> >> Traceback (most recent call last): >> File "setup.py", line 4, in >> import dpkt >> File >> "/home/YegorYefremov/projects/versioned/tests/br-queue-python/output/build/python-dpkt-1.7/dpkt/__init__.py", >> line 26, in import gzip File >> "/home/YegorYefremov/projects/versioned/tests/br-queue-python/output/build/python-dpkt-1.7/dpkt/gzip.py", >> line 5, in import struct, zlib ImportError: No module named >> zlib > At build time, the host-python is used. And the fact that you enabled > "zlib" for the target python has no impact on the configuration of the > host python. Why does it require zlib support in Python at build time? > Or, said otherwise, why does it tries to import the dpkt Python module > you're building, at build time? This is a good question to maintainer of dpkt. I copied version, author and other stuff from dpkt/_init_.py to setup.py, commented import dpkt and could successfully install this package. Still haven't tested it. Because I need netifaces and this package needs setuptools :-( Yegor