Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Asaf Kahlon <asafka7@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/1] python-psycopg2: add patch to avoid installing tests
Date: Fri, 12 Oct 2018 09:36:55 +0300	[thread overview]
Message-ID: <20181012063655.10229-1-asafka7@gmail.com> (raw)

It's already on upstream, and will be removed on the next bump.

Fixes:
http://autobuild.buildroot.org/results/31c/31c942a43064fc012286724e545773cba6e57cc3/

Signed-off-by: Asaf Kahlon <asafka7@gmail.com>
---
 ...id-installing-tests-to-site-packages.patch | 31 +++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 package/python-psycopg2/0001-setup.py-avoid-installing-tests-to-site-packages.patch

diff --git a/package/python-psycopg2/0001-setup.py-avoid-installing-tests-to-site-packages.patch b/package/python-psycopg2/0001-setup.py-avoid-installing-tests-to-site-packages.patch
new file mode 100644
index 0000000000..f2dc3adca9
--- /dev/null
+++ b/package/python-psycopg2/0001-setup.py-avoid-installing-tests-to-site-packages.patch
@@ -0,0 +1,31 @@
+From 46c50849584d254b81ad058e1a53adcef1eb4c53 Mon Sep 17 00:00:00 2001
+From: Asaf Kahlon <asafka7@gmail.com>
+Date: Fri, 12 Oct 2018 07:57:23 +0300
+Subject: [PATCH 1/1] setup.py: avoid installing tests to site-packages
+
+This patch update only setup.py from upstream patch
+(389f6c08d9536060184bfd5c8ea2491a4a91c2fb).
+
+Signed-off-by: Asaf Kahlon <asafka7@gmail.com>
+---
+ setup.py | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/setup.py b/setup.py
+index b521290..3f309fc 100644
+--- a/setup.py
++++ b/setup.py
+@@ -674,8 +674,8 @@ setup(name="psycopg2",
+       long_description="\n".join(readme.split("\n")[2:]).lstrip(),
+       classifiers=[x for x in classifiers.split("\n") if x],
+       data_files=data_files,
+-      package_dir={'psycopg2': 'lib', 'psycopg2.tests': 'tests'},
+-      packages=['psycopg2', 'psycopg2.tests'],
++      package_dir={'psycopg2': 'lib'},
++      packages=['psycopg2'],
+       cmdclass={
+           'build_ext': psycopg_build_ext,
+           'build_py': build_py, },
+-- 
+2.17.1
+
-- 
2.17.1

             reply	other threads:[~2018-10-12  6:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-12  6:36 Asaf Kahlon [this message]
2018-10-14  8:00 ` [Buildroot] [PATCH 1/1] python-psycopg2: add patch to avoid installing tests 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=20181012063655.10229-1-asafka7@gmail.com \
    --to=asafka7@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