-
Notifications
You must be signed in to change notification settings - Fork 31
/
setup.py
44 lines (39 loc) · 1.48 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
from setuptools import setup
from setuptools.extension import Extension
from setuptools.command.build_clib import build_clib
try:
from Cython.Distutils import build_ext
has_cython = True
except ImportError:
has_cython = False
# sourcefiles = ['src/pylibemu.pyx']
# cmdclass = { 'build_ext' : build_ext, 'build_clib' : build_clib }
sourcefiles = ['src/pylibemu.c']
cmdclass = {'build_clib' : build_clib}
setup(
name = "pylibemu",
packages = [],
version = "1.0",
description = "Libemu Python wrapper",
url = "https://github.com/buffer/pylibemu",
author = "Angelo Dell'Aera",
author_email = "[email protected]",
maintainer = "Angelo Dell'Aera",
maintainer_email = "[email protected]",
classifiers = [
"Programming Language :: Cython",
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
"Operating System :: Unix",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Security",
],
cmdclass = cmdclass,
keywords = ['libemu', 'pylibemu', 'shellcode'],
ext_modules = [Extension("pylibemu",
sources = sourcefiles,
libraries = ["emu"]
)],
)