From: Yegor Yefremov <yegor_sub1@visionsystems.de>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] New package: python-dpkt
Date: Wed, 14 Dec 2011 11:39:05 +0100 [thread overview]
Message-ID: <4EE87CC9.1040809@visionsystems.de> (raw)
In-Reply-To: <1323858932-10219-1-git-send-email-yegorslists@googlemail.com>
> +PYTHON_DPKT_VERSION = 1.7
> +PYTHON_DPKT_SOURCE = dpkt-$(PYTHON_DPKT_VERSION).tar.gz
> +PYTHON_DPKT_SITE = http://dpkt.googlecode.com/files
> +
> +PYTHON_DPKT_DEPENDENCIES = python
> +
> +define PYTHON_DPKT_BUILD_CMDS
> + (cd $(@D); \
> + CC="$(TARGET_CC)" \
> + CFLAGS="$(TARGET_CFLAGS)" \
> + LDSHARED="$(TARGET_CC) -shared" \
> + LDFLAGS="$(TARGET_LDFLAGS)" \
> + $(HOST_DIR)/usr/bin/python setup.py build_ext \
> + --include-dirs=$(STAGING_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR))
> + (cd $(@D); $(HOST_DIR)/usr/bin/python setup.py build)
> +endef
> +
> +define PYTHON_DPKT_INSTALL_TARGET_CMDS
> + (cd $(@D); $(HOST_DIR)/usr/bin/python setup.py install --prefix=$(TARGET_DIR)/usr)
> +endef
> +
> +$(eval $(call GENTARGETS))
> +
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
zlib is selected as core python component. Nevertheless it cannot be found. At first I tried to mimic python-serial build script, than python-mad, but they both don't require zlib.
Any idea?
Yegor
next prev parent reply other threads:[~2011-12-14 10:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-14 10:35 [Buildroot] [PATCH] New package: python-dpkt yegorslists at googlemail.com
2011-12-14 10:39 ` Yegor Yefremov [this message]
2011-12-14 10:46 ` Thomas Petazzoni
2011-12-14 11:37 ` Yegor Yefremov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4EE87CC9.1040809@visionsystems.de \
--to=yegor_sub1@visionsystems.de \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.