Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Rohan Fletcher <rohfledev@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/3] python: added hidden openssl option to host python
Date: Sat, 20 Jul 2013 22:27:13 +1200	[thread overview]
Message-ID: <1374316034-31973-2-git-send-email-rohfledev@gmail.com> (raw)
In-Reply-To: <1374316034-31973-1-git-send-email-rohfledev@gmail.com>

used by python-pip to use https to download packages

Signed-off-by: Rohan Fletcher <rohfledev@gmail.com>
---
 package/python/Config.in |  6 ++++++
 package/python/python.mk | 11 +++++++++--
 2 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/package/python/Config.in b/package/python/Config.in
index cfe73db..0740ef0 100644
--- a/package/python/Config.in
+++ b/package/python/Config.in
@@ -101,6 +101,12 @@ config BR2_PACKAGE_PYTHON_HASHLIB
 	help
 	  hashlib support in Python
 
+config BR2_HOST_PYTHON_SSL_SUPPORT
+	bool
+	help
+	  Includes ssl support in host python build. 
+	  This is disabled by default to reduce build time.
+
 endmenu
 
 endif
diff --git a/package/python/python.mk b/package/python/python.mk
index ecea638..4bd9da1 100644
--- a/package/python/python.mk
+++ b/package/python/python.mk
@@ -31,8 +31,11 @@ HOST_PYTHON_CONF_OPT += 	\
 	--disable-gdbm		\
 	--disable-bsddb		\
 	--disable-test-modules	\
-	--disable-bz2		\
-	--disable-ssl
+	--disable-bz2		
+
+ifneq ($(BR2_HOST_PYTHON_SSL_SUPPORT), y)
+HOST_PYTHON_CONF_OPT += --disable-ssl
+endif
 
 HOST_PYTHON_MAKE_ENV = \
 	PYTHON_MODULES_INCLUDE=$(HOST_DIR)/usr/include \
@@ -51,6 +54,10 @@ HOST_PYTHON_MAKE = $(MAKE1)
 PYTHON_DEPENDENCIES  = host-python libffi
 
 HOST_PYTHON_DEPENDENCIES = host-expat host-zlib
+ 
+ifeq ($(BR2_HOST_PYTHON_SSL_SUPPORT), y)
+HOST_PYTHON_DEPENDENCIES += host-openssl
+endif
 
 PYTHON_INSTALL_STAGING = YES
 
-- 
1.8.1.2

  reply	other threads:[~2013-07-20 10:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-20 10:27 [Buildroot] [PATCH 1/3] python-setuptools: bumped version to 0.8 Rohan Fletcher
2013-07-20 10:27 ` Rohan Fletcher [this message]
2013-07-20 10:27 ` [Buildroot] [PATCH 3/3] python-pip: new package Rohan Fletcher
2014-02-13 21:12 ` [Buildroot] [PATCH 1/3] python-setuptools: bumped version to 0.8 Thomas Petazzoni
2014-02-13 22:18   ` Thomas Petazzoni

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=1374316034-31973-2-git-send-email-rohfledev@gmail.com \
    --to=rohfledev@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox