-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes to Python wrapper examples. Changes to work with Python 3.12
- Loading branch information
1 parent
60f22e0
commit b8db1e4
Showing
12 changed files
with
108 additions
and
92 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
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
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
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
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
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# Python wrapper version | ||
__version__ = "1.9.8" | ||
__version__ = "1.9.9" |
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,6 @@ | ||
#from distutils.core import setup, Extension | ||
from setuptools import setup, Extension,find_packages | ||
from distutils.util import convert_path | ||
import io | ||
import glob | ||
import numpy | ||
import sys | ||
|
@@ -14,6 +14,15 @@ | |
ROOT = here | ||
ROOT="" | ||
|
||
PYTHON_MOD = os.path.join(ROOT,"cmsisdsp") | ||
version_path = os.path.join(PYTHON_MOD,"version.py") | ||
|
||
__version__ = re.search( | ||
r'__version__\s*=\s*[\'"]([^\'"]*)[\'"]', # It excludes inline comment too | ||
io.open(version_path, encoding='utf_8_sig').read() | ||
).group(1) | ||
|
||
|
||
includes = [os.path.join(ROOT,"Include"),os.path.join(ROOT,"PrivateInclude"),os.path.join("PythonWrapper","cmsisdsp_pkg","src")] | ||
|
||
if sys.platform == 'win32': | ||
|
@@ -153,13 +162,8 @@ def build(): | |
print('setup.py: Error: This package only supports Python 3.', file=sys.stderr) | ||
sys.exit(1) | ||
|
||
main_ns = {} | ||
ver_path = convert_path(os.path.join("cmsisdsp","version.py")) | ||
with open(ver_path) as ver_file: | ||
exec(ver_file.read(), main_ns) | ||
|
||
setup (name = 'cmsisdsp', | ||
version = main_ns['__version__'], | ||
version = __version__, | ||
packages=["cmsisdsp"], | ||
description = 'CMSIS-DSP Python API', | ||
long_description=open("PythonWrapper_README.md").read(), | ||
|
@@ -181,7 +185,7 @@ def build(): | |
moduleWindow | ||
], | ||
include_package_data=True, | ||
author = 'Copyright (C) 2010-2023 ARM Limited or its affiliates. All rights reserved.', | ||
author = 'Copyright (C) 2010-2024 ARM Limited or its affiliates. All rights reserved.', | ||
author_email = '[email protected]', | ||
url="https://github.com/ARM-software/CMSIS-DSP", | ||
python_requires='>=3.7', | ||
|
@@ -202,10 +206,6 @@ def build(): | |
keywords=['development','dsp','cmsis','cmsis-dsp','Arm','signal processing','maths','ml','cortex-m','cortex-a'], | ||
install_requires=[ | ||
'numpy>=1.22', | ||
'networkx>=3.0', | ||
'jinja2>= 3.1.2, <4.0', | ||
'sympy>=1.7.1', | ||
'MarkupSafe>=2.1.2, <3.0' | ||
], | ||
project_urls={ # Optional | ||
'Bug Reports': 'https://github.com/ARM-software/CMSIS-DSP/issues', | ||
|