All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] python-paho-mqtt: add new package
Date: Mon, 28 Dec 2015 14:25:14 +0100	[thread overview]
Message-ID: <20151228142514.58df0700@free-electrons.com> (raw)
In-Reply-To: <1451307455-23911-1-git-send-email-zinosat@tiscali.it>

Davide,

On Mon, 28 Dec 2015 13:57:35 +0100, Davide Viti wrote:

> diff --git a/package/python-paho-mqtt/Config.in b/package/python-paho-mqtt/Config.in
> new file mode 100644
> index 0000000..1b20da9
> --- /dev/null
> +++ b/package/python-paho-mqtt/Config.in
> @@ -0,0 +1,9 @@
> +config BR2_PACKAGE_PYTHON_PAHO_MQTT
> +	bool "python-paho-mqtt"
> +	help
> +	  The Paho Python Client provides a client class with support
> +	  for both MQTT v3.1 and v3.1.1 on Python 2.7 or 3.x. It also
> +	  provides some helper functions to make publishing one off
> +	  messages to an MQTT server very straightforward.

I know it was copy/pasted from the website, but this last sentence
doesn't make much sense to me. Maybe it's because I'm not a native
speaker, but "publishing one off messages" is not something that I can
parse. Did they mean "publishing on/off messages" ? Or something else ?

> +PYTHON_PAHO_MQTT_VERSION = 1.1
> +PYTHON_PAHO_MQTT_SOURCE = paho-mqtt-$(PYTHON_PAHO_MQTT_VERSION).tar.gz
> +PYTHON_PAHO_MQTT_SITE = https://pypi.python.org/packages/source/p/paho-mqtt
> +PYTHON_PAHO_MQTT_LICENSE = EPLv1.0 or EDLv1.0
> +PYTHON_PAHO_MQTT_LICENSE_FILES = LICENSE.txt edl-v10 epl-v10
> +PYTHON_PAHO_MQTT_SETUP_TYPE = setuptools
> +
> +define PYTHON_PAHO_MQTT_INSTALL_TARGET_CMDS
> +	(cd $(@D); \
> +		$(HOST_PKG_PYTHON_SETUPTOOLS_ENV) \
> +		$(HOST_DIR)/usr/bin/python2 setup.py install \
> +		--root=/)
> +endef

Why do you need to override <pkg>_INSTALL_TARGET_CMDS ?

Using $(HOST_PKG_PYTHON_SETUPTOOLS_ENV) for a target package looks
clearly wrong. Also, since you're not passing
--prefix=$(TARGET_DIR)/usr, I don't see how this overriden install
target commands can even install something in $(TARGET_DIR).

Could you clarify this?

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

  parent reply	other threads:[~2015-12-28 13:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-28 12:57 [Buildroot] [PATCH 1/1] python-paho-mqtt: add new package Davide Viti
2015-12-28 13:24 ` Yegor Yefremov
2015-12-28 13:25 ` Thomas Petazzoni [this message]
2015-12-29 22:37   ` Davide Viti
2015-12-29 22:45     ` Yegor Yefremov
2015-12-30 21:03   ` Arnout Vandecappelle
2016-01-01 17:17     ` Steve Calfee

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=20151228142514.58df0700@free-electrons.com \
    --to=thomas.petazzoni@free-electrons.com \
    --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.