[Buildroot] [PATCH] New package: python-dpkt

Yegor Yefremov yegor_sub1 at visionsystems.de
Wed Dec 14 11:37:55 UTC 2011


Am 14.12.2011 11:46, schrieb Thomas Petazzoni:
> Le Wed, 14 Dec 2011 11:39:05 +0100,
> Yegor Yefremov <yegor_sub1 at visionsystems.de> a écrit :
>
>> I have following problem building this package:
>>
>> Traceback (most recent call last):
>>   File "setup.py", line 4, in <module>
>>     import dpkt
>>   File
>> "/home/YegorYefremov/projects/versioned/tests/br-queue-python/output/build/python-dpkt-1.7/dpkt/__init__.py",
>> line 26, in <module> import gzip File
>> "/home/YegorYefremov/projects/versioned/tests/br-queue-python/output/build/python-dpkt-1.7/dpkt/gzip.py",
>> line 5, in <module> 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



More information about the buildroot mailing list