blob: aa58f20686dc353971ffb48dc8cd37d99766fa75 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
diff -Naur root.as-needed/bindings/pyroot/Module.mk root/bindings/pyroot/Module.mk
--- root.as-needed/bindings/pyroot/Module.mk 2011-07-10 10:42:48.991561304 +0400
+++ root/bindings/pyroot/Module.mk 2011-07-10 10:43:21.493339703 +0400
@@ -48,8 +48,6 @@
ROOTPY := $(subst $(MODDIR),$(LPATH),$(ROOTPYS))
$(LPATH)/%.py: $(MODDIR)/%.py; cp $< $@
endif
-ROOTPYC := $(ROOTPY:.py=.pyc)
-ROOTPYO := $(ROOTPY:.py=.pyo)
# used in the main Makefile
ALLHDRS += $(patsubst $(MODDIRI)/%.h,include/%.h,$(PYROOTH))
@@ -68,10 +66,8 @@
include/%.h: $(PYROOTDIRI)/%.h
cp $< $@
-%.pyc: %.py; python -c 'import py_compile; py_compile.compile( "$<" )'
-%.pyo: %.py; python -O -c 'import py_compile; py_compile.compile( "$<" )'
-$(PYROOTLIB): $(PYROOTO) $(PYROOTDO) $(ROOTPY) $(ROOTPYC) $(ROOTPYO) \
+$(PYROOTLIB): $(PYROOTO) $(PYROOTDO) $(ROOTPY) \
$(ROOTLIBSDEP) $(PYTHONLIBDEP)
@$(MAKELIB) $(PLATFORM) $(LD) "$(LDFLAGS)" \
"$(SOFLAGS)" libPyROOT.$(SOEXT) $@ \
@@ -113,7 +109,7 @@
distclean-$(MODNAME): clean-$(MODNAME)
@rm -f $(PYROOTDEP) $(PYROOTDS) $(PYROOTDH) $(PYROOTLIB) \
- $(ROOTPY) $(ROOTPYC) $(ROOTPYO) $(PYROOTMAP) \
+ $(ROOTPY) $(PYROOTMAP) \
$(PYROOTPYD) $(PYTHON64DEP) $(PYTHON64)
distclean:: distclean-$(MODNAME)
|