-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace custom distutils hacks with a simple Extension
- Loading branch information
Showing
6 changed files
with
65 additions
and
323 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
*.egg-info | ||
*.py[cod] | ||
*.so | ||
build | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
include COPYING setup.cfg setup.py | ||
include make\win32\cdistorm.vcxproj make\win32\cdistorm.vcxproj.filters make\win32\distorm.sln make\win32\resource.h make\win32\Resource.rc | ||
recursive-include src *.c *.h | ||
recursive-include include *.c *.h | ||
recursive-include include *.h | ||
recursive-include . *.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#define PY_SSIZE_T_CLEAN | ||
#include <Python.h> | ||
|
||
#if PY_MAJOR_VERSION == 2 | ||
PyMODINIT_FUNC | ||
init_distorm3(void) | ||
{ | ||
(void) Py_InitModule("_distorm3", NULL); | ||
} | ||
#else | ||
static struct PyModuleDef _distorm3_module = { | ||
PyModuleDef_HEAD_INIT, | ||
"_distorm3", | ||
NULL, | ||
-1, | ||
NULL, | ||
}; | ||
|
||
PyMODINIT_FUNC | ||
PyInit__distorm3(void) | ||
{ | ||
PyObject *m; | ||
|
||
m = PyModule_Create(&_distorm3_module); | ||
if (m == NULL) | ||
return NULL; | ||
|
||
return m; | ||
} | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
[wheel] | ||
universal = 1 | ||
|
||
[install] | ||
force=1 | ||
compile=1 | ||
|
Oops, something went wrong.