Skip to content
Browse files

Install .py files along with .pyc

(cherry picked from commit 5e73af6)
  • Loading branch information...
1 parent 244052f commit dd3a2b38973ac0ee571d707a453369f76b1dc7e3 Alexey Sokolov committed
Showing with 6 additions and 1 deletion.
  1. +6 −1 modules/modpython/
7 modules/modpython/
@@ -59,10 +59,15 @@ modpython/compiler: modpython/compiler.cpp Makefile
modpython_install: install_datadir modpython_all
- -for i in *.pyc; do \
+ -for i in *.pyc $(srcdir)/*.py; do \
mkdir -p $(DESTDIR)$(MODDIR)/modpython
$(INSTALL_PROGRAM) modpython/ $(DESTDIR)$(MODDIR)/modpython
$(INSTALL_DATA) modpython/znc_core.pyc $(DESTDIR)$(MODDIR)/modpython
+ if test -r modpython/;\
+ then $(INSTALL_DATA) modpython/ $(DESTDIR)$(MODDIR)/modpython;\
+ else $(INSTALL_DATA) $(srcdir)/modpython/ $(DESTDIR)$(MODDIR)/modpython;\
+ fi
$(INSTALL_DATA) modpython/znc.pyc $(DESTDIR)$(MODDIR)/modpython
+ $(INSTALL_DATA) $(srcdir)/modpython/ $(DESTDIR)$(MODDIR)/modpython

0 comments on commit dd3a2b3

Please sign in to comment.
Something went wrong with that request. Please try again.