Support build in a sdist
This commit is contained in:
@@ -26,7 +26,7 @@ ROOT_DIR = os.path.dirname(os.path.realpath(__file__))
|
|||||||
LIBS_DIR = os.path.join(ROOT_DIR, 'unicorn', 'lib')
|
LIBS_DIR = os.path.join(ROOT_DIR, 'unicorn', 'lib')
|
||||||
HEADERS_DIR = os.path.join(ROOT_DIR, 'unicorn', 'include')
|
HEADERS_DIR = os.path.join(ROOT_DIR, 'unicorn', 'include')
|
||||||
SRC_DIR = os.path.join(ROOT_DIR, 'src')
|
SRC_DIR = os.path.join(ROOT_DIR, 'src')
|
||||||
UC_DIR = os.path.join(ROOT_DIR, '../..')
|
UC_DIR = SRC_DIR if os.path.exists(SRC_DIR) else os.path.join(ROOT_DIR, '../..')
|
||||||
BUILD_DIR = os.path.join(UC_DIR, 'build_python')
|
BUILD_DIR = os.path.join(UC_DIR, 'build_python')
|
||||||
|
|
||||||
VERSION = "2.0.0"
|
VERSION = "2.0.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user