-
Notifications
You must be signed in to change notification settings - Fork 41
/
setup.py
executable file
·47 lines (43 loc) · 1.88 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
# -*- coding: utf-8 -*-
import sys
import os
from setuptools import setup, Extension
SOURCES = ['src/py_minizip.c', 'src/py_miniunz.c',
'zlib-1.2.11/contrib/minizip/zip.c', 'zlib-1.2.11/contrib/minizip/unzip.c', 'zlib-1.2.11/contrib/minizip/ioapi.c',
'zlib-1.2.11/adler32.c', 'zlib-1.2.11/compress.c', 'zlib-1.2.11/crc32.c', 'zlib-1.2.11/deflate.c',
'zlib-1.2.11/infback.c', 'zlib-1.2.11/inffast.c', 'zlib-1.2.11/inflate.c',
'zlib-1.2.11/inftrees.c', 'zlib-1.2.11/trees.c', 'zlib-1.2.11/uncompr.c', 'zlib-1.2.11/zutil.c']
if 'win32' in sys.platform:
SOURCES.append('zlib-1.2.11/contrib/minizip/iowin32.c')
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(
name = 'pyminizip',
version = '0.2.6',
description = 'A minizip wrapper - To create a password encrypted zip file in python.',
author='Shin Aoyama',
author_email = "[email protected]",
url = "https://github.com/smihica/pyminizip",
download_url = "",
keywords = ["zip", "file", "compress", "password", "encryption"],
classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 2",
"Programming Language :: Python :: 3",
"Development Status :: 3 - Alpha",
"Environment :: Other Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: zlib/libpng License",
"Operating System :: OS Independent",
"Topic :: System :: Archiving :: Compression",
"Topic :: Software Development :: Libraries :: Python Modules",
],
ext_modules=[
Extension(name="pyminizip",
sources=SOURCES,
include_dirs=['src','zlib-1.2.11','zlib-1.2.11/contrib/minizip'],
)
],
long_description = read('README.md'),
long_description_content_type = 'text/markdown',
)