build-sys: use automake's PYTHON primary for __init__.py
Actually the initial reason for this commit was to remove execute permission from installed __init__.py. Now after discovering automake's _PYTHON suffix we slightly cleanup Makemodule.am and we will install byte compiled .pyc and .pyo files. Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
This commit is contained in:
parent
b95beee709
commit
15cb27895d
|
@ -33,6 +33,7 @@ config.rpath
|
|||
config.status
|
||||
config.sub
|
||||
config/ltmain.sh
|
||||
config/py-compile
|
||||
config/test-driver
|
||||
configure
|
||||
cscope.out
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
EXTRA_DIST += libmount/python/__init__.py
|
||||
|
||||
if BUILD_PYLIBMOUNT
|
||||
|
||||
pylibmountexecdir = $(pyexecdir)/libmount
|
||||
|
@ -8,7 +6,7 @@ pylibmountexecdir = $(pyexecdir)/libmount
|
|||
# directory for binary stuff as well as for the scripts otherwise it's
|
||||
# not possible to install 32-bit and 64-bit version on the same system.
|
||||
pylibmountexec_LTLIBRARIES = pylibmount.la
|
||||
pylibmountexec_SCRIPTS = libmount/python/__init__.py
|
||||
pylibmountexec_PYTHON = libmount/python/__init__.py
|
||||
|
||||
pylibmount_la_SOURCES = \
|
||||
libmount/python/pylibmount.c \
|
||||
|
|
Loading…
Reference in New Issue