Commit 2bfbdb7c authored by Joanne Hugé's avatar Joanne Hugé

Add setup.py for the python location module

parent 8c6d516d
import os
from setuptools import setup, Extension
setup(
name='libloc',
version='0.9.16',
description='libloc is a lightweight library which can be used to query the IPFire Location database.',
url='https://location.ipfire.org/',
license='LGPLv2+',
author='IPFire',
author_email='location@lists.ipfire.org',
ext_modules=[
Extension(
name="_location",
sources=[
"country.c",
"database.c",
"locationmodule.c",
"network.c",
"as.c",
"writer.c",
],
libraries=['loc'],
define_macros=[
('PACKAGE_VERSION', '"0.9.16"'),
('LIBLOC_DEFAULT_DATABASE_PATH', '"/var/lib/location/database.db"')
],
),
],
packages=['libloc.location'],
classifiers=[
'Intended Audience :: Developers',
'Programming Language :: Python',
'License :: OSI Approved :: GNU Lesser General Public License v2 or later (LGPLv2+)',
],
)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment