pyalamake 2.4.0__tar.gz → 2.4.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyalamake-2.4.0/src/pyalamake.egg-info → pyalamake-2.4.2}/PKG-INFO +1 -1
- {pyalamake-2.4.0 → pyalamake-2.4.2}/pyproject.toml +1 -1
- {pyalamake-2.4.0 → pyalamake-2.4.2}/src/pyalamake/constants_version.py +1 -1
- {pyalamake-2.4.0 → pyalamake-2.4.2}/src/pyalamake/osal.py +47 -14
- {pyalamake-2.4.0 → pyalamake-2.4.2}/src/pyalamake/pyalamake.py +1 -1
- {pyalamake-2.4.0 → pyalamake-2.4.2/src/pyalamake.egg-info}/PKG-INFO +1 -1
- {pyalamake-2.4.0 → pyalamake-2.4.2}/LICENSE.txt +0 -0
- {pyalamake-2.4.0 → pyalamake-2.4.2}/MANIFEST.in +0 -0
- {pyalamake-2.4.0 → pyalamake-2.4.2}/README.md +0 -0
- {pyalamake-2.4.0 → pyalamake-2.4.2}/setup.cfg +0 -0
- {pyalamake-2.4.0 → pyalamake-2.4.2}/src/pyalamake/__init__.py +0 -0
- {pyalamake-2.4.0 → pyalamake-2.4.2}/src/pyalamake/arduino_shared.py +0 -0
- {pyalamake-2.4.0 → pyalamake-2.4.2}/src/pyalamake/boards.json +0 -0
- {pyalamake-2.4.0 → pyalamake-2.4.2}/src/pyalamake/compile_cmd_json.py +0 -0
- {pyalamake-2.4.0 → pyalamake-2.4.2}/src/pyalamake/gbl.py +0 -0
- {pyalamake-2.4.0 → pyalamake-2.4.2}/src/pyalamake/list_param.py +0 -0
- {pyalamake-2.4.0 → pyalamake-2.4.2}/src/pyalamake/makefile_variables.py +0 -0
- {pyalamake-2.4.0 → pyalamake-2.4.2}/src/pyalamake/package_cpip.py +0 -0
- {pyalamake-2.4.0 → pyalamake-2.4.2}/src/pyalamake/package_opengl.py +0 -0
- {pyalamake-2.4.0 → pyalamake-2.4.2}/src/pyalamake/path_handle.py +0 -0
- {pyalamake-2.4.0 → pyalamake-2.4.2}/src/pyalamake/svc.py +0 -0
- {pyalamake-2.4.0 → pyalamake-2.4.2}/src/pyalamake/target_arduino.py +0 -0
- {pyalamake-2.4.0 → pyalamake-2.4.2}/src/pyalamake/target_arduino_core.py +0 -0
- {pyalamake-2.4.0 → pyalamake-2.4.2}/src/pyalamake/target_base.py +0 -0
- {pyalamake-2.4.0 → pyalamake-2.4.2}/src/pyalamake/target_base_min.py +0 -0
- {pyalamake-2.4.0 → pyalamake-2.4.2}/src/pyalamake/target_c.py +0 -0
- {pyalamake-2.4.0 → pyalamake-2.4.2}/src/pyalamake/target_c_cpp_base.py +0 -0
- {pyalamake-2.4.0 → pyalamake-2.4.2}/src/pyalamake/target_c_cpp_lib_base.py +0 -0
- {pyalamake-2.4.0 → pyalamake-2.4.2}/src/pyalamake/target_c_lib.py +0 -0
- {pyalamake-2.4.0 → pyalamake-2.4.2}/src/pyalamake/target_cpp.py +0 -0
- {pyalamake-2.4.0 → pyalamake-2.4.2}/src/pyalamake/target_cpp_lib.py +0 -0
- {pyalamake-2.4.0 → pyalamake-2.4.2}/src/pyalamake/target_gtest.py +0 -0
- {pyalamake-2.4.0 → pyalamake-2.4.2}/src/pyalamake/target_manual.py +0 -0
- {pyalamake-2.4.0 → pyalamake-2.4.2}/src/pyalamake/target_swig.py +0 -0
- {pyalamake-2.4.0 → pyalamake-2.4.2}/src/pyalamake.egg-info/SOURCES.txt +0 -0
- {pyalamake-2.4.0 → pyalamake-2.4.2}/src/pyalamake.egg-info/dependency_links.txt +0 -0
- {pyalamake-2.4.0 → pyalamake-2.4.2}/src/pyalamake.egg-info/requires.txt +0 -0
- {pyalamake-2.4.0 → pyalamake-2.4.2}/src/pyalamake.egg-info/top_level.txt +0 -0
|
@@ -94,6 +94,28 @@ class _MetaOsal(type): # pylint: disable=too-many-public-methods
|
|
|
94
94
|
# do not fix_path()
|
|
95
95
|
return path
|
|
96
96
|
|
|
97
|
+
# --------------------
|
|
98
|
+
## get the root of the arduino libraries
|
|
99
|
+
#
|
|
100
|
+
# @return the root arduino library directory
|
|
101
|
+
@classmethod
|
|
102
|
+
def arduino_avr_root_dir(cls):
|
|
103
|
+
# TODO get these using arduinocli
|
|
104
|
+
path = f'{cls.arduino_root_dir()}/packages/arduino/hardware/avr/1.8.8'
|
|
105
|
+
# do not fix_path()
|
|
106
|
+
return path
|
|
107
|
+
|
|
108
|
+
# --------------------
|
|
109
|
+
## get the library directory for arduino built-in libraries e.g. Wire
|
|
110
|
+
#
|
|
111
|
+
# @return the arduino built-in library root directory
|
|
112
|
+
@classmethod
|
|
113
|
+
def arduino_builtin_root_dir(cls):
|
|
114
|
+
# TODO get these using arduinocli
|
|
115
|
+
path = f'{cls.arduino_avr_root_dir()}/libraries'
|
|
116
|
+
# do not fix_path()
|
|
117
|
+
return path
|
|
118
|
+
|
|
97
119
|
# --------------------
|
|
98
120
|
## get the library directory for arduino core source files
|
|
99
121
|
#
|
|
@@ -101,7 +123,7 @@ class _MetaOsal(type): # pylint: disable=too-many-public-methods
|
|
|
101
123
|
@classmethod
|
|
102
124
|
def arduino_core_src_dir(cls):
|
|
103
125
|
# TODO get these using arduinocli
|
|
104
|
-
path = f'{cls.
|
|
126
|
+
path = f'{cls.arduino_avr_root_dir()}/cores/arduino'
|
|
105
127
|
# do not fix_path()
|
|
106
128
|
return path
|
|
107
129
|
|
|
@@ -113,8 +135,8 @@ class _MetaOsal(type): # pylint: disable=too-many-public-methods
|
|
|
113
135
|
def arduino_core_includes(cls):
|
|
114
136
|
# TODO get these using arduinocli
|
|
115
137
|
incs = [
|
|
116
|
-
|
|
117
|
-
f'{cls.
|
|
138
|
+
cls.arduino_core_src_dir(),
|
|
139
|
+
f'{cls.arduino_avr_root_dir()}/variants/standard',
|
|
118
140
|
]
|
|
119
141
|
# do not fix_path()
|
|
120
142
|
return incs
|
|
@@ -129,6 +151,17 @@ class _MetaOsal(type): # pylint: disable=too-many-public-methods
|
|
|
129
151
|
path = f'{cls.arduino_root_dir()}/packages/arduino/tools/avr-gcc/7.3.0-atmel3.6.1-arduino7/bin'
|
|
130
152
|
return path
|
|
131
153
|
|
|
154
|
+
# --------------------
|
|
155
|
+
## get the directory for avrdude.conf
|
|
156
|
+
#
|
|
157
|
+
# @return the avrdude directory
|
|
158
|
+
@classmethod
|
|
159
|
+
def avrdude_root_dir(cls):
|
|
160
|
+
# TODO get this using arduinocli
|
|
161
|
+
path = f'{cls.arduino_root_dir()}/packages/arduino/tools/avrdude/8.0.0-arduino1'
|
|
162
|
+
# do not fix_path()
|
|
163
|
+
return path
|
|
164
|
+
|
|
132
165
|
# --------------------
|
|
133
166
|
## get the directory for avrdude.conf
|
|
134
167
|
#
|
|
@@ -136,7 +169,7 @@ class _MetaOsal(type): # pylint: disable=too-many-public-methods
|
|
|
136
169
|
@classmethod
|
|
137
170
|
def avrdude_dir(cls):
|
|
138
171
|
# TODO get this using arduinocli
|
|
139
|
-
path = f'{cls.
|
|
172
|
+
path = f'{cls.avrdude_root_dir()}/bin'
|
|
140
173
|
# do not fix_path()
|
|
141
174
|
return path
|
|
142
175
|
|
|
@@ -147,7 +180,7 @@ class _MetaOsal(type): # pylint: disable=too-many-public-methods
|
|
|
147
180
|
@classmethod
|
|
148
181
|
def avrdude_conf_dir(cls):
|
|
149
182
|
# TODO get this using arduinocli
|
|
150
|
-
path = f'{cls.
|
|
183
|
+
path = f'{cls.avrdude_root_dir()}/etc'
|
|
151
184
|
# do not fix_path()
|
|
152
185
|
return path
|
|
153
186
|
|
|
@@ -190,7 +223,7 @@ class _MetaOsal(type): # pylint: disable=too-many-public-methods
|
|
|
190
223
|
# @return the list of include directories
|
|
191
224
|
@classmethod
|
|
192
225
|
def python_includes(cls):
|
|
193
|
-
svc.log.warn('@@>>@@ DEPRECATE
|
|
226
|
+
svc.log.warn('@@>>@@ !DEPRECATE!: pyalamake.python_includes()')
|
|
194
227
|
import sysconfig
|
|
195
228
|
|
|
196
229
|
incs = [sysconfig.get_path('include')]
|
|
@@ -203,7 +236,7 @@ class _MetaOsal(type): # pylint: disable=too-many-public-methods
|
|
|
203
236
|
# @return the list of link libraries
|
|
204
237
|
@classmethod
|
|
205
238
|
def python_link_libs(cls):
|
|
206
|
-
svc.log.warn('@@>>@@ DEPRECATE
|
|
239
|
+
svc.log.warn('@@>>@@ !DEPRECATE!: pyalamake.python_link_libs()')
|
|
207
240
|
import sysconfig
|
|
208
241
|
|
|
209
242
|
if svc.pyosal.os_name == 'msys2':
|
|
@@ -253,7 +286,7 @@ class _MetaOsal(type): # pylint: disable=too-many-public-methods
|
|
|
253
286
|
# @return the list of include directories
|
|
254
287
|
@classmethod
|
|
255
288
|
def ruby_includes(cls):
|
|
256
|
-
svc.log.warn('@@>>@@ DEPRECATE
|
|
289
|
+
svc.log.warn('@@>>@@ !DEPRECATE!: pyalamake.ruby_includes()')
|
|
257
290
|
incs = [cls._get_ruby_inc1(), cls._get_ruby_inc2()]
|
|
258
291
|
|
|
259
292
|
# do not fix_path()
|
|
@@ -265,7 +298,7 @@ class _MetaOsal(type): # pylint: disable=too-many-public-methods
|
|
|
265
298
|
# @return path
|
|
266
299
|
@classmethod
|
|
267
300
|
def _get_ruby_inc1(cls):
|
|
268
|
-
svc.log.warn('@@>>@@ DEPRECATE
|
|
301
|
+
svc.log.warn('@@>>@@ !DEPRECATE!: pyalamake.ruby_inc1()')
|
|
269
302
|
cmd = ['ruby', '-rrbconfig', '-e', 'puts RbConfig::CONFIG["rubyhdrdir"]']
|
|
270
303
|
result = subprocess.run(cmd, capture_output=True, text=True, check=True, shell=False)
|
|
271
304
|
lines = result.stdout.strip().splitlines()
|
|
@@ -289,7 +322,7 @@ class _MetaOsal(type): # pylint: disable=too-many-public-methods
|
|
|
289
322
|
# @return path
|
|
290
323
|
@classmethod
|
|
291
324
|
def _get_ruby_inc2(cls):
|
|
292
|
-
svc.log.warn('@@>>@@ DEPRECATE
|
|
325
|
+
svc.log.warn('@@>>@@ !DEPRECATE!: pyalamake.ruby_inc2()')
|
|
293
326
|
cmd = ['ruby', '-rrbconfig', '-e', 'puts RbConfig::CONFIG["rubyarchhdrdir"]']
|
|
294
327
|
result = subprocess.run(cmd, capture_output=True, text=True, check=True, shell=False)
|
|
295
328
|
lines = result.stdout.strip().splitlines()
|
|
@@ -310,7 +343,7 @@ class _MetaOsal(type): # pylint: disable=too-many-public-methods
|
|
|
310
343
|
# @return the list of link directories
|
|
311
344
|
@classmethod
|
|
312
345
|
def ruby_link_dirs(cls):
|
|
313
|
-
svc.log.warn('@@>>@@ DEPRECATE
|
|
346
|
+
svc.log.warn('@@>>@@ !DEPRECATE!: pyalamake.ruby_link_dirs()')
|
|
314
347
|
dirs = [cls._get_ruby_lib()]
|
|
315
348
|
|
|
316
349
|
# do not fix_path()
|
|
@@ -322,7 +355,7 @@ class _MetaOsal(type): # pylint: disable=too-many-public-methods
|
|
|
322
355
|
# @return link library
|
|
323
356
|
@classmethod
|
|
324
357
|
def _get_ruby_lib(cls):
|
|
325
|
-
svc.log.warn('@@>>@@ DEPRECATE
|
|
358
|
+
svc.log.warn('@@>>@@ !DEPRECATE!: pyalamake.get_ruby_lib()')
|
|
326
359
|
cmd = ['ruby', '-rrbconfig', '-e', 'puts RbConfig::CONFIG["libdir"]']
|
|
327
360
|
result = subprocess.run(cmd, capture_output=True, text=True, check=True, shell=False)
|
|
328
361
|
lines = result.stdout.strip().splitlines()
|
|
@@ -343,7 +376,7 @@ class _MetaOsal(type): # pylint: disable=too-many-public-methods
|
|
|
343
376
|
# @return the list of link libraries
|
|
344
377
|
@classmethod
|
|
345
378
|
def ruby_link_libs(cls):
|
|
346
|
-
svc.log.warn('@@>>@@ DEPRECATE
|
|
379
|
+
svc.log.warn('@@>>@@ !DEPRECATE!: pyalamake.ruby_link_libs()')
|
|
347
380
|
libs = []
|
|
348
381
|
if svc.pyosal.os_name == 'msys2':
|
|
349
382
|
libs.append('x64-ucrt-ruby330.dll')
|
|
@@ -442,7 +475,7 @@ class _MetaOsal(type): # pylint: disable=too-many-public-methods
|
|
|
442
475
|
# @return rc, output lines
|
|
443
476
|
@classmethod
|
|
444
477
|
def run_cmd(cls, cmd):
|
|
445
|
-
svc.log.warn('@@>>@@ DEPRECATE
|
|
478
|
+
svc.log.warn('@@>>@@ !DEPRECATE!: pyalamake.run_cmd()')
|
|
446
479
|
result = subprocess.run(
|
|
447
480
|
cmd,
|
|
448
481
|
capture_output=True, # Capture stdout and stderr
|
|
@@ -55,7 +55,7 @@ class AlaMake:
|
|
|
55
55
|
@property
|
|
56
56
|
def is_win(self):
|
|
57
57
|
# TODO deprecated
|
|
58
|
-
svc.log.warn('@@>>@@ DEPRECATED alamake.is_win; use is_msys2')
|
|
58
|
+
svc.log.warn('@@>>@@ !DEPRECATED! alamake.is_win; use is_msys2')
|
|
59
59
|
return svc.pyosal.os_name == 'msys2'
|
|
60
60
|
|
|
61
61
|
# --------------------
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|