mirror of
https://github.com/upa/mscp.git
synced 2026-02-04 11:34:44 +08:00
35 lines
921 B
Python
35 lines
921 B
Python
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"
|
|
|
|
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 = [ ("", ["build/" + libmscp])],
|
|
py_modules = [ "mscp" ],
|
|
ext_modules = [
|
|
Extension(
|
|
'pymscp',
|
|
['src/pymscp.c'],
|
|
library_dirs = ['build'],
|
|
libraries = ['mscp'],
|
|
include_dirs = ['include']
|
|
)
|
|
]
|
|
)
|