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

PR body:
"""
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>
"""

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 8582e7e172a235892e28bf15eba25ab7902726e1 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 ++---
 ipaclient/setup.cfg   | 10 ++++++++++
 ipalib/setup.cfg      | 10 ++++++++++
 ipaplatform/setup.cfg | 10 ++++++++++
 ipapython/setup.cfg   | 10 ++++++++++
 ipaserver/setup.cfg   | 10 ++++++++++
 ipatests/setup.cfg    | 10 ++++++++++
 7 files changed, 62 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/ipaclient/setup.cfg b/ipaclient/setup.cfg
index 34abb12..b540960 100644
--- a/ipaclient/setup.cfg
+++ b/ipaclient/setup.cfg
@@ -1,5 +1,15 @@
+[build]
+build-base = ../build
+
+[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..b540960 100644
--- a/ipalib/setup.cfg
+++ b/ipalib/setup.cfg
@@ -1,5 +1,15 @@
+[build]
+build-base = ../build
+
+[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..b540960 100644
--- a/ipaplatform/setup.cfg
+++ b/ipaplatform/setup.cfg
@@ -1,5 +1,15 @@
+[build]
+build-base = ../build
+
+[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..b540960 100644
--- a/ipapython/setup.cfg
+++ b/ipapython/setup.cfg
@@ -1,5 +1,15 @@
+[build]
+build-base = ../build
+
+[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..b540960 100644
--- a/ipaserver/setup.cfg
+++ b/ipaserver/setup.cfg
@@ -1,5 +1,15 @@
+[build]
+build-base = ../build
+
+[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..b540960 100644
--- a/ipatests/setup.cfg
+++ b/ipatests/setup.cfg
@@ -1,5 +1,15 @@
+[build]
+build-base = ../build
+
+[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