-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
85 lines (67 loc) · 2.16 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#!/usr/bin/env python
#
# Copyright (c) 2017-2023 Fernando Pelliccioni
#
import sys
from setuptools import setup
from setuptools.extension import Extension
PKG_NAME = 'cpuid_native'
VERSION = '0.0.8'
SYSTEM = sys.platform
# ------------------------------------------------
from sys import platform
# if platform == "linux" or platform == "linux2":
# # linux
# elif platform == "darwin":
# # OS X
# elif platform == "win32":
# # Windows...
extensions = [
Extension('cpuid_native',
sources = ['cpuidmodule.cpp'],
),
]
setup(
name=PKG_NAME,
version=VERSION,
description='x86 cpuid native API',
long_description='x86 cpuid native API',
url='https://github.com/fpelliccioni/cpuid-py-native',
# Author details
author='Fernando Pelliccioni',
author_email='fpelliccioni@gmail.com',
# Choose your license
license='MIT',
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
# How mature is this project? Common values are
# 3 - Alpha
# 4 - Beta
# 5 - Production/Stable
'Development Status :: 3 - Alpha',
# Indicate who your project is intended for
'Intended Audience :: Developers',
'Topic :: Software Development :: Build Tools',
# Pick your license as you wish (should match "license" above)
'License :: OSI Approved :: MIT License',
'Programming Language :: C++',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
],
# What does your project relate to?
keywords='intel amd cpuid x86',
extras_require={
'dev': ['check-manifest'],
'test': ['coverage'],
},
ext_modules = extensions,
)