URL: https://github.com/freeipa/freeipa/pull/188
Author: tiran
 Title: #188: Move Python build artefacts to top level directory
Action: synchronized

To pull the PR as Git branch:
git remote add ghfreeipa https://github.com/freeipa/freeipa
git fetch ghfreeipa pull/188/head:pr188
git checkout pr188
From 9e4e58bb7061bf9963350b1a1d66e0e7a4a04ca4 Mon Sep 17 00:00:00 2001
From: Christian Heimes <chei...@redhat.com>
Date: Wed, 26 Oct 2016 12:33:07 +0200
Subject: [PATCH] Move Python build artefacts to top level directory

All setup.py use the same build, dist and *.egg-info directory on top
level. Build artefacts are no longer placed in local build directories.

Signed-off-by: Christian Heimes <chei...@redhat.com>
---
 .gitignore            |  5 ++---
 Makefile              |  1 +
 ipaclient/setup.cfg   | 10 ++++++++++
 ipalib/setup.cfg      | 10 ++++++++++
 ipaplatform/setup.cfg | 10 ++++++++++
 ipapython/setup.cfg   | 10 ++++++++++
 ipaserver/setup.cfg   | 10 ++++++++++
 ipatests/setup.cfg    | 10 ++++++++++
 8 files changed, 63 insertions(+), 3 deletions(-)

diff --git a/.gitignore b/.gitignore
index ac69f97..ddd764f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -24,7 +24,7 @@ ltmain.sh
 missing
 stamp-h1
 libtool
-build/
+/build/
 compile
 
 # Python compilation
@@ -39,12 +39,11 @@ freeipa2-dev-doc
 /freeipa.spec
 !/Makefile
 /dist/
-/*/dist/
 /RELEASE
 /rpmbuild/
 # Build
 /ipasetup.py
-*.egg-info
+/*.egg-info
 
 # Subdirectories
 /daemons/ipa-otpd/ipa-otpd
diff --git a/Makefile b/Makefile
index 761b57d..b40ff0f 100644
--- a/Makefile
+++ b/Makefile
@@ -131,6 +131,7 @@ pylint: bootstrap-autogen
 	FILES=`find . \
 		-type d -exec test -e '{}/__init__.py' \; -print -prune -o \
 		-path '*/.*' -o \
+		-path './build/*' -o \
 		-path './dist/*' -o \
 		-path './lextab.py' -o \
 		-path './yacctab.py' -o \
diff --git a/ipaclient/setup.cfg b/ipaclient/setup.cfg
index 34abb12..754af4a 100644
--- a/ipaclient/setup.cfg
+++ b/ipaclient/setup.cfg
@@ -1,5 +1,15 @@
+[build]
+build-base = ../build/ipaclient
+
+[sdist]
+dist-dir = ../dist
+
+[egg_info]
+egg-base = ../
+
 [bdist_wheel]
 universal = 1
+dist-dir = ../dist
 
 [metadata]
 license_file = ../COPYING
diff --git a/ipalib/setup.cfg b/ipalib/setup.cfg
index 34abb12..b5b64cb 100644
--- a/ipalib/setup.cfg
+++ b/ipalib/setup.cfg
@@ -1,5 +1,15 @@
+[build]
+build-base = ../build/ipalib
+
+[sdist]
+dist-dir = ../dist
+
+[egg_info]
+egg-base = ../
+
 [bdist_wheel]
 universal = 1
+dist-dir = ../dist
 
 [metadata]
 license_file = ../COPYING
diff --git a/ipaplatform/setup.cfg b/ipaplatform/setup.cfg
index 34abb12..9e759f5 100644
--- a/ipaplatform/setup.cfg
+++ b/ipaplatform/setup.cfg
@@ -1,5 +1,15 @@
+[build]
+build-base = ../build/ipaplatform
+
+[sdist]
+dist-dir = ../dist
+
+[egg_info]
+egg-base = ../
+
 [bdist_wheel]
 universal = 1
+dist-dir = ../dist
 
 [metadata]
 license_file = ../COPYING
diff --git a/ipapython/setup.cfg b/ipapython/setup.cfg
index 34abb12..ff2e622 100644
--- a/ipapython/setup.cfg
+++ b/ipapython/setup.cfg
@@ -1,5 +1,15 @@
+[build]
+build-base = ../build/ipapython
+
+[sdist]
+dist-dir = ../dist
+
+[egg_info]
+egg-base = ../
+
 [bdist_wheel]
 universal = 1
+dist-dir = ../dist
 
 [metadata]
 license_file = ../COPYING
diff --git a/ipaserver/setup.cfg b/ipaserver/setup.cfg
index 34abb12..0421dd5 100644
--- a/ipaserver/setup.cfg
+++ b/ipaserver/setup.cfg
@@ -1,5 +1,15 @@
+[build]
+build-base = ../build/ipaserver
+
+[sdist]
+dist-dir = ../dist
+
+[egg_info]
+egg-base = ../
+
 [bdist_wheel]
 universal = 1
+dist-dir = ../dist
 
 [metadata]
 license_file = ../COPYING
diff --git a/ipatests/setup.cfg b/ipatests/setup.cfg
index 34abb12..4697272 100644
--- a/ipatests/setup.cfg
+++ b/ipatests/setup.cfg
@@ -1,5 +1,15 @@
+[build]
+build-base = ../build/ipatests
+
+[sdist]
+dist-dir = ../dist
+
+[egg_info]
+egg-base = ../
+
 [bdist_wheel]
 universal = 1
+dist-dir = ../dist
 
 [metadata]
 license_file = ../COPYING
-- 
Manage your subscription for the Freeipa-devel mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-devel
Contribute to FreeIPA: http://www.freeipa.org/page/Contribute/Code

Reply via email to