Skip to content

Commit ce4610a

Browse files
Merge branch 'v900'
2 parents 429dd71 + 19cf03e commit ce4610a

16 files changed

Lines changed: 1108 additions & 27 deletions

doc/source/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@
5656
# built documents.
5757
#
5858
# The short X.Y version.
59-
version = '3.0'
59+
version = '4.0'
6060
# The full version, including alpha/beta/rc tags.
61-
release = '3.0'
61+
release = '4.0'
6262

6363
# The language for content autogenerated by Sphinx. Refer to documentation
6464
# for a list of supported languages.

doc/source/index.rst

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
============================================================
2+
Versioning Information
3+
============================================================
4+
5+
Minor differences can occur between different icsnVC40.h versions. These differences are usually just structures and constant differences. Below is a list of how the python_ics version correlates to the icsnVC40.h version:
6+
7+
v802
8+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
9+
``pip install 'python_ics>=2.0,<3.0' --force-reinstall``
10+
11+
**Note:** Refer to platform specific installation if not on Windows
12+
13+
v803
14+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15+
``pip install 'python_ics>=3.0,<4.0' --force-reinstall``
16+
17+
**Note:** Refer to platform specific installation if not on Windows
18+
19+
v900
20+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21+
``pip install 'python_ics>=4.0,<5.0' --force-reinstall``
22+
23+
**Note:** Refer to platform specific installation if not on Windows
24+
25+
126
============================================================
227
Installation on Windows
328
============================================================

extract_icsneo40_defines.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@
4646
print("\n#ifdef _USE_INTERNAL_HEADER_ /* ALL THESE DEFINES ARE SPECIFIED IN THE INTERNAL HEADER */\n", file=f)
4747
inside_enum = False
4848
inside_comment = False
49+
line_number = 0
4950
for line in fname:
51+
line_number += 1
5052
if line.lstrip().startswith('//'):
5153
continue
5254
if inside_enum and '}' in line:
@@ -73,10 +75,10 @@
7375
continue
7476
if '#define' in line:
7577
sline = line.split()
76-
#print('\t\t' + str(sline))
78+
# DEBUG: print('\t\t' + str(line_number) + '\t' + str(sline))
7779
if any(x in sline[1] for x in ignores):
7880
continue
79-
if re.match("^\d+?\.\d+?$", sline[2]) is not None:
81+
if len(sline) >= 3 and re.match("^\d+?\.\d+?$", sline[2]) is not None:
8082
# Value is a float
8183
print('\tresult += PyModule_AddObject(module, "{0}", PyFloat_FromDouble({0}));'.format(sline[1]), file=f)
8284
else:

0 commit comments

Comments
 (0)