Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support client-only build #494

Closed
wants to merge 14 commits into from
Prev Previous commit
Next Next commit
CONFIGURE: Check for python module setuptools
It is required for installation of python modules therefore
it should be checked at aonfigure time.

  GEN      ipasetup.py
make[3]: Leaving directory `/workdir/freeipa'
cd .; /usr/bin/python setup.py \
        "--verbose" \
        build \
        --build-base "/workdir/freeipa/ipaclient/build"
Traceback (most recent call last):
  File "setup.py", line 29, in <module>
    from ipasetup import ipasetup  # noqa: E402
  File "/workdir/freeipa/ipasetup.py", line 20, in <module>
    from setuptools.command.build_py import build_py as setuptools_build_py
ImportError: No module named setuptools.command.build_py
  • Loading branch information
Lukas Slebodnik committed Feb 22, 2017
commit a1321abbdb2cf510e0f36c65d2af0fb6329d2e23
9 changes: 9 additions & 0 deletions configure.ac
Expand Up @@ -121,6 +121,15 @@ if test "x$PYTHON" = "x" ; then
AC_MSG_ERROR([Python not found])
fi

AC_MSG_CHECKING($(basename $PYTHON) module setuptools )
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please put this in a separate PR. This is not related to --disable-server.

$PYTHON -c "import setuptools" 2>/dev/null
if test $? -eq 0; then
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
AC_MSG_ERROR([$PYTHON module setuptools is required for installation])
fi

dnl ---------------------------------------------------------------------------
dnl Check for ndr_krb5pac and other samba libraries
dnl ---------------------------------------------------------------------------
Expand Down