Skip to content

Instantly share code, notes, and snippets.

@jpadhye
Forked from ndevenish/setup.py
Created March 17, 2018 07:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpadhye/3a8301f85378b769e5956d7eeb963812 to your computer and use it in GitHub Desktop.
Save jpadhye/3a8301f85378b769e5956d7eeb963812 to your computer and use it in GitHub Desktop.
Replacement setup.py for py3exiv2, that allows building on OSX
#!/usr/bin/python3
# -*- coding: utf-8 -*-
import sys
import os
import glob
import subprocess
from setuptools import setup, find_packages, Extension
from codecs import open
from os import path
]
here = path.abspath(path.dirname(__file__))
# Get the long description from the relevant file
with open(path.join(here, 'DESCRIPTION.rst'), encoding='utf-8') as f:
long_description = f.read()
setup(
name='py3exiv2',
version='0.1.0',
description='A Python3 binding to the library exiv2',
long_description=long_description,
url='https://launchpad.net/py3exiv2',
author='Vincent Vande Vyvre',
author_email='vincent.vandevyvre@oqapy.eu',
license='GPL-3',
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
'Topic :: Software Development',
'License :: OSI Approved :: GNU General Public License v3 (GPLv3)',
'Programming Language :: C++',
'Programming Language :: Python :: 3.2',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
],
keywords='exiv2 pyexiv2 EXIF IPTC XMP image metadata',
packages = find_packages('src'),
package_dir = {'': 'src'},
package_data={'':['src/*.cpp', 'src/*.hpp',]},
# cmdclass={'install': install}
ext_modules=[
Extension('libexiv2python',
['src/exiv2wrapper.cpp', 'src/exiv2wrapper_python.cpp'],
include_dirs=[],
library_dirs=[],
libraries=['boost_python3', 'exiv2'],
extra_compile_args=['-g']
)
],
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment