package/x11r7/xdriver_xf86-video-siliconmotion: bump version to 1.7.9
[buildroot-gz.git] / package / python / 005-pyc-pyo-conditional.patch
blob1b677dfb11532ddb458b24ae49e9a8b53e99a56c
1 Index: b/Makefile.pre.in
2 ===================================================================
3 --- a/Makefile.pre.in
4 +++ b/Makefile.pre.in
5 @@ -1050,24 +1050,32 @@
6 $(INSTALL_DATA) $(srcdir)/Modules/xxmodule.c \
7 $(DESTDIR)$(LIBDEST)/distutils/tests ; \
8 fi
9 +ifeq (@PYC_BUILD@,yes)
10 PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
11 $(PYTHON_FOR_BUILD) -Wi -tt $(DESTDIR)$(LIBDEST)/compileall.py \
12 -d $(LIBDEST) -f \
13 -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
14 $(DESTDIR)$(LIBDEST)
15 +endif
16 +ifeq (@PYO_BUILD@,yes)
17 PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
18 $(PYTHON_FOR_BUILD) -Wi -tt -O $(DESTDIR)$(LIBDEST)/compileall.py \
19 -d $(LIBDEST) -f \
20 -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
21 $(DESTDIR)$(LIBDEST)
22 +endif
23 +ifeq (@PYC_BUILD@,yes)
24 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
25 $(PYTHON_FOR_BUILD) -Wi -t $(DESTDIR)$(LIBDEST)/compileall.py \
26 -d $(LIBDEST)/site-packages -f \
27 -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
28 +endif
29 +ifeq (@PYO_BUILD@,yes)
30 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
31 $(PYTHON_FOR_BUILD) -Wi -t -O $(DESTDIR)$(LIBDEST)/compileall.py \
32 -d $(LIBDEST)/site-packages -f \
33 -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
34 +endif
35 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
36 $(PYTHON_FOR_BUILD) -m lib2to3.pgen2.driver $(DESTDIR)$(LIBDEST)/lib2to3/Grammar.txt
37 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
38 Index: b/configure.ac
39 ===================================================================
40 --- a/configure.ac
41 +++ b/configure.ac
42 @@ -739,6 +739,17 @@
44 esac
46 +AC_SUBST(PYC_BUILD)
48 +AC_ARG_ENABLE(pyc-build,
49 + AS_HELP_STRING([--disable-pyc-build], [disable build of pyc files]),
50 + [ PYC_BUILD="${enableval}" ], [ PYC_BUILD=yes ])
52 +AC_SUBST(PYO_BUILD)
54 +AC_ARG_ENABLE(pyo-build,
55 + AS_HELP_STRING([--disable-pyo-build], [disable build of pyo files]),
56 + [ PYO_BUILD="${enableval}" ], [ PYO_BUILD=yes ])
58 AC_SUBST(LIBRARY)
59 AC_MSG_CHECKING(LIBRARY)