/usr/lib/python2.7/dist-packages/libtiff/version.py is in python-libtiff 0.4.1~20150805-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | # THIS FILE IS GENERATED FROM libtiff/setup.py
short_version='0.4.1'
version='0.4.1'
release=False
if not release:
version += '.dev'
import os
svn_version_file = os.path.join(os.path.dirname(__file__),
'__svn_version__.py')
svn_entries_file = os.path.join(os.path.dirname(__file__),'.svn',
'entries')
if os.path.isfile(svn_version_file):
import imp
svn = imp.load_module('libtiff.__svn_version__',
open(svn_version_file),
svn_version_file,
('.py','U',1))
version += svn.version
elif os.path.isfile(svn_entries_file):
import subprocess
try:
svn_version = subprocess.Popen(["svnversion", os.path.dirname (__file__)], stdout=subprocess.PIPE).communicate()[0]
except:
pass
else:
version += svn_version.strip()
print version
|