Changeset 1ca493a for python


Ignore:
Timestamp:
Jun 25, 2020, 8:26:37 PM (5 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
Candidate_v1.7.0, stable
Children:
b56827
Parents:
912a6f
git-author:
Frederik Heber <frederik.heber@…> (04/16/19 23:09:54)
git-committer:
Frederik Heber <frederik.heber@…> (06/25/20 20:26:37)
Message:

Allowing python3 usage.

  • Init function name changes on python2/3.
  • added test and AC_DEFINEs to configure.ac.
  • PythonScripting branches on these preprocessor defines.
  • removed ax_python.m4.
  • FIX: boost.m4 overwrites BOOST_PYTHON_LIBS pulled from python-config which caused the issues with ax_python.m4 and boost.m4 checking for different python versions. Added BOOST_PYTHON_LIB which contains the python libs needed.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • python/Makefile.am

    r912a6f r1ca493a  
    1818        ../src/Actions/GlobalListOfActions.hpp \
    1919        ../src/Actions/ActionHistory.hpp
    20 pyMoleCuilder_la_CPPFLAGS = $(AM_CPPFLAGS) ${BOOST_CPPFLAGS} ${CodePatterns_CFLAGS} $(JobMarket_CFLAGS) -I$(PYTHON_INCLUDE_DIR)
    21 pyMoleCuilder_la_LDFLAGS = $(AM_LDFLAGS) -module -version-info $(MOLECUILDER_SO_VERSION) -shared $(BOOST_PYTHON_LDFLAGS)
     20pyMoleCuilder_la_CPPFLAGS = \
     21        $(AM_CPPFLAGS) \
     22        ${BOOST_CPPFLAGS} \
     23        ${CodePatterns_CFLAGS} \
     24        $(JobMarket_CFLAGS) \
     25        $(BOOST_PYTHON_CPPFLAGS)
     26pyMoleCuilder_la_LDFLAGS = $(AM_LDFLAGS) -module -version-info $(MOLECUILDER_SO_VERSION) -shared $(BOOST_PYTHON_LDFLAGS) $(BOOST_PYTHON_LDFLAGS)
    2227pyMoleCuilder_la_LIBADD = \
    2328        $(top_builddir)/src/libMolecuilderUI.la
    2429pyMoleCuilder_la_LIBADD += \
    2530        $(BOOST_PYTHON_LIBS) \
    26         ${CodePatterns_LIBS} \
    27         -l$(PYTHON_LIB)
     31        $(BOOST_PYTHON_LIB) \
     32        ${CodePatterns_LIBS}
    2833endif
    2934
Note: See TracChangeset for help on using the changeset viewer.