-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.py
52 lines (48 loc) · 1.55 KB
/
setup.py
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# -*- coding: utf-8 -*-
#
# Copyright (C) 2010 Hidekazu Ohnishi
# Copyright (C) 2014-2021 Frode Solheim
#
# This software is released under the terms of the BSD license.
# For more information see the COPYING.txt file in this directory.
from setuptools import setup, Extension
import sys
import platform
extra_compile_args = []
extra_link_args = []
if sys.platform == "darwin" and platform.machine() == "i386":
extra_compile_args.append("-m32")
extra_link_args.append("-m32")
lzhlib = Extension(
"lzhlib",
extra_compile_args=extra_compile_args,
extra_link_args=extra_link_args,
define_macros=[("MAJOR_VERSION", "0"), ("MINOR_VERSION", "2")],
sources=["lzhlib.c"],
)
setup(
name="lhafile",
packages=["lhafile"],
version="0.3.1",
description="LHA archive support for Python",
long_description="""\
A python package that handles .lha archives, with an interface similar to the
zipfile module found in the standard library.""",
author="Hidekazu Ohnishi",
author_email="[email protected]",
maintainer="Frode Solheim",
maintainer_email="[email protected]",
url="https://github.com/FrodeSolheim/python-lhafile/",
download_url="https://pypi.org/project/lhafile/",
license="BSD",
keywords=[],
classifiers=[
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Topic :: System :: Archiving",
],
ext_modules=[lzhlib],
)