]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
build-sys: use automake's PYTHON primary for __init__.py
authorRuediger Meier <ruediger.meier@ga-group.nl>
Mon, 2 Jun 2014 14:34:47 +0000 (16:34 +0200)
committerRuediger Meier <ruediger.meier@ga-group.nl>
Tue, 3 Jun 2014 11:12:43 +0000 (13:12 +0200)
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>
.gitignore
libmount/python/Makemodule.am

index b04276989d8c107fe9911fa00122a8ca1d35aca5..93e0bc8d62407128742856b5c0193d2359827952 100644 (file)
@@ -33,6 +33,7 @@ config.rpath
 config.status
 config.sub
 config/ltmain.sh
+config/py-compile
 config/test-driver
 configure
 cscope.out
index efe210efd9a8760815fb8f1c32e0d20dd3caddfb..aeb76d75f3cab2fe3a6c110a7402fefc256dc030 100644 (file)
@@ -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 \