ipaplatform: Link to platform module during build time

https://fedorahosted.org/freeipa/ticket/4052

Reviewed-By: Petr Viktorin <pviktori@redhat.com>
This commit is contained in:
Tomas Babej 2014-06-03 12:35:53 +02:00 committed by Petr Viktorin
parent 6906eed27e
commit c8aa00806b
3 changed files with 15 additions and 1 deletions

6
.gitignore vendored
View File

@ -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

View File

@ -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; \

View File

@ -78,6 +78,9 @@ setup(
packages=[
'ipalib',
'ipalib.plugins',
'ipaplatform',
'ipaplatform.base',
'ipaplatform.fedora',
'ipaserver',
'ipaserver.advise',
'ipaserver.advise.plugins',