File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- include python3/pyiptcdata.h
1+ include python3/pyiptcdata.h
2+ include python2/pyiptcdata.h
Original file line number Diff line number Diff line change 1+ import sys
2+
13from setuptools import setup , Extension
24
3- iptc = Extension ('iptcdata' , sources = ['python3/pyiptcdata.c' ,
4- 'python3/pyiptcdatamod.c' ,
5- 'python3/pyiptcdataset.c' ],
5+ v = '2'
6+ if (sys .version_info > (3 , 0 )):
7+ v = '3'
8+
9+ iptc = Extension ('iptcdata' , sources = ['python%s/pyiptcdata.c' % (v ),
10+ 'python%s/pyiptcdatamod.c' % (v ),
11+ 'python%s/pyiptcdataset.c' % (v )],
612 libraries = ['iptcdata' ],
7- depends = ['python3 /pyiptcdata.h' ])
13+ depends = ['python%s /pyiptcdata.h' % ( v ) ])
814
915setup (name = 'iptcdata' ,
1016 version = '1.0.4' ,
2026under the GNU Library General Public License (GNU LGPL).
2127
2228The library implements the standard described at http://www.iptc.org/IIM
23-
24- The code itself was inspired by the libexif library:
25- http://sourceforge.net/projects/libexif, written by Lutz Müller.
26- Together, libexif and libiptcdata provide a complete metadata
27- solution for image files.
2829 ''' ,
2930 ext_modules = [iptc ])
You can’t perform that action at this time.
0 commit comments