summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomas Babej <tbabej@redhat.com>2014-06-03 12:35:53 +0200
committerPetr Viktorin <pviktori@redhat.com>2014-06-16 19:48:21 +0200
commitc8aa00806bd67de0d67a65c5d2d4cfffd9e1a9c2 (patch)
tree9f07e4c6ef7b444cc8d5895c35c86658b9c00657
parent6906eed27e51b39e77a3c6c653cb98d207d3aafa (diff)
downloadfreeipa-c8aa00806bd67de0d67a65c5d2d4cfffd9e1a9c2.tar.gz
freeipa-c8aa00806bd67de0d67a65c5d2d4cfffd9e1a9c2.tar.xz
freeipa-c8aa00806bd67de0d67a65c5d2d4cfffd9e1a9c2.zip
ipaplatform: Link to platform module during build time
https://fedorahosted.org/freeipa/ticket/4052 Reviewed-By: Petr Viktorin <pviktori@redhat.com>
-rw-r--r--.gitignore6
-rw-r--r--Makefile7
-rwxr-xr-xsetup.py3
3 files changed, 15 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 5aaee9ee6..b968b5706 100644
--- a/.gitignore
+++ b/.gitignore
@@ -68,6 +68,10 @@ freeipa2-dev-doc
/ipapython/setup.py
/ipapython/version.py
-/ipapython/services.py
!/ipapython/Makefile
!/ipapython/py_default_encoding/Makefile
+
+/ipaplatform/setup.py
+/ipaplatform/tasks.py
+/ipaplatform/services.py
+/ipaplatform/paths.py
diff --git a/Makefile b/Makefile
index f51a89103..0d0e641c9 100644
--- a/Makefile
+++ b/Makefile
@@ -150,6 +150,13 @@ version-update: release-update
sed -e s/__VERSION__/$(IPA_VERSION)/ ipa-client/version.m4.in \
> ipa-client/version.m4
+ if [ "$(SUPPORTED_PLATFORM)" != "" ]; then \
+ rm -f ipaplatform/paths.py ipaplatform/services.py ipaplatform/tasks.py; \
+ ln -s $(SUPPORTED_PLATFORM)/paths.py ipaplatform/paths.py; \
+ ln -s $(SUPPORTED_PLATFORM)/services.py ipaplatform/services.py; \
+ ln -s $(SUPPORTED_PLATFORM)/tasks.py ipaplatform/tasks.py; \
+ fi
+
if [ "$(SKIP_API_VERSION_CHECK)" != "yes" ]; then \
./makeapi --validate; \
./makeaci --validate; \
diff --git a/setup.py b/setup.py
index af7964d60..af968e173 100755
--- a/setup.py
+++ b/setup.py
@@ -78,6 +78,9 @@ setup(
packages=[
'ipalib',
'ipalib.plugins',
+ 'ipaplatform',
+ 'ipaplatform.base',
+ 'ipaplatform.fedora',
'ipaserver',
'ipaserver.advise',
'ipaserver.advise.plugins',