mirror of
https://github.com/upa/mscp.git
synced 2026-05-22 05:17:29 +08:00
rename setup.py to pysetup.py
to prevent dh_auto_build from automatically detecting setup.py.
This commit is contained in:
37
pysetup.py
Normal file
37
pysetup.py
Normal file
@@ -0,0 +1,37 @@
|
||||
from setuptools import setup, Extension, find_packages
|
||||
import sys
|
||||
import os
|
||||
|
||||
mypackage_root_dir = os.path.dirname(__file__)
|
||||
with open(os.path.join(mypackage_root_dir, 'VERSION')) as version_file:
|
||||
version = version_file.read().strip()
|
||||
|
||||
if sys.platform == "linux":
|
||||
libmscp = "libmscp.so"
|
||||
elif sys.platform == "darwin":
|
||||
libmscp = "libmscp.dylib"
|
||||
|
||||
data_dir = sys.prefix + "/lib"
|
||||
libmscp = "build/" + libmscp
|
||||
|
||||
setup(
|
||||
name='mscp',
|
||||
version = version,
|
||||
description = "libmscp python binding",
|
||||
author = "Ryo Nakamura",
|
||||
author_email = "upa@haeena.net",
|
||||
url = "https://github.com/upa/mscp",
|
||||
packages = find_packages("mscp"),
|
||||
package_dir = {"": "mscp"},
|
||||
data_files = [ (data_dir, [libmscp])],
|
||||
py_modules = [ "mscp" ],
|
||||
ext_modules = [
|
||||
Extension(
|
||||
'pymscp',
|
||||
['src/pymscp.c'],
|
||||
library_dirs = ['build'],
|
||||
libraries = ['mscp'],
|
||||
include_dirs = ['include']
|
||||
)
|
||||
]
|
||||
)
|
||||
Reference in New Issue
Block a user