source: branches/packages_10.03.1/lang/xapian-bindings/patches/010-build.patch @ 28417

Last change on this file since 28417 was 28417, checked in by nico, 5 years ago

[backfire/packages] merge [28415] & [28416]

File size: 2.6 KB
  • python/Makefile.am

    a b pylibdir = @PYTHON_LIB@ 
    2323 
    2424# Install as _DATA rather than _SCRIPTS because we don't want to make these 
    2525# executable (they don't have a #! line). 
    26 pylib_DATA = xapian.py xapian.pyc xapian.pyo 
     26pylib_DATA = xapian.py 
    2727 
    2828pylib_LTLIBRARIES = _xapian.la 
    2929 
    _xapian_la_LIBADD = $(XAPIAN_LIBS) $(PYT 
    5353xapian.py: modern/xapian.py 
    5454        cp `test -f modern/xapian.py || echo '$(srcdir)/'`modern/xapian.py . 
    5555 
    56 # We "import _xapian" first so that if we fail to import the glue library 
    57 # we don't generate a broken xapian.pyc or xapian.pyo. 
    58 xapian.pyc: xapian.py _xapian$(PYTHON_SO) 
    59         PYTHONPATH=. $(PYTHON) -c "import _xapian;import xapian" 
    60  
    61 xapian.pyo: xapian.py _xapian$(PYTHON_SO) 
    62         PYTHONPATH=. $(PYTHON) -O -c "import _xapian;import xapian" 
    63  
    6456_xapian$(PYTHON_SO): _xapian.la 
    6557        $(LIBTOOL) --config > libtoolconfig.tmp 
    6658        . ./libtoolconfig.tmp; cp $$objdir/_xapian$(PYTHON_SO) . 
    6759        rm -f libtoolconfig.tmp 
    6860 
    69 CLEANFILES = _xapian$(PYTHON_SO) xapian.py xapian.pyc xapian.pyo testsuite.pyc 
     61CLEANFILES = _xapian$(PYTHON_SO) xapian.py testsuite.pyc 
    7062 
    7163if MAINTAINER_MODE 
    7264# We need to explicitly set -outdir because on Windows, SWIG splits paths at 
  • python/Makefile.in

    a b pylibdir = @PYTHON_LIB@ 
    292292 
    293293# Install as _DATA rather than _SCRIPTS because we don't want to make these 
    294294# executable (they don't have a #! line). 
    295 pylib_DATA = xapian.py xapian.pyc xapian.pyo 
     295pylib_DATA = xapian.py 
    296296pylib_LTLIBRARIES = _xapian.la 
    297297AM_CPPFLAGS = -I$(PYTHON_INC) 
    298298AM_CXXFLAGS = $(SWIG_CXXFLAGS) $(XAPIAN_CXXFLAGS) 
    299299_xapian_la_LDFLAGS = -avoid-version -module -shrext "$(PYTHON_SO)" $(NO_UNDEFINED) 
    300300_xapian_la_SOURCES = modern/xapian_wrap.cc 
    301301_xapian_la_LIBADD = $(XAPIAN_LIBS) $(PYTHON_LIBS) 
    302 CLEANFILES = _xapian$(PYTHON_SO) xapian.py xapian.pyc xapian.pyo \ 
     302CLEANFILES = _xapian$(PYTHON_SO) xapian.py \ 
    303303        testsuite.pyc $(am__append_2) 
    304304@MAINTAINER_MODE_FALSE@MAINTAINERCLEANFILES = $(BUILT_SOURCES) 
    305305all: $(BUILT_SOURCES) 
    uninstall-local: 
    819819xapian.py: modern/xapian.py 
    820820        cp `test -f modern/xapian.py || echo '$(srcdir)/'`modern/xapian.py . 
    821821 
    822 # We "import _xapian" first so that if we fail to import the glue library 
    823 # we don't generate a broken xapian.pyc or xapian.pyo. 
    824 xapian.pyc: xapian.py _xapian$(PYTHON_SO) 
    825         PYTHONPATH=. $(PYTHON) -c "import _xapian;import xapian" 
    826  
    827 xapian.pyo: xapian.py _xapian$(PYTHON_SO) 
    828         PYTHONPATH=. $(PYTHON) -O -c "import _xapian;import xapian" 
    829  
    830822_xapian$(PYTHON_SO): _xapian.la 
    831823        $(LIBTOOL) --config > libtoolconfig.tmp 
    832824        . ./libtoolconfig.tmp; cp $$objdir/_xapian$(PYTHON_SO) . 
Note: See TracBrowser for help on using the repository browser.