@@ -7,61 +7,66 @@ project(
77
88py = import (' python' ).find_installation()
99
10- sources = {
11- ' array_api_compat' : files (
10+ sources_raw = {
11+ ' array_api_compat' : [
1212 ' src/array_api_compat/__init__.py' ,
1313 ' src/array_api_compat/_internal.py' ,
14- ) ,
14+ ] ,
1515
16- ' array_api_compat/common' : files (
16+ ' array_api_compat/common' : [
1717 ' src/array_api_compat/common/__init__.py' ,
1818 ' src/array_api_compat/common/_aliases.py' ,
1919 ' src/array_api_compat/common/_fft.py' ,
2020 ' src/array_api_compat/common/_helpers.py' ,
2121 ' src/array_api_compat/common/_linalg.py' ,
2222 ' src/array_api_compat/common/_typing.py' ,
23- ) ,
23+ ] ,
2424
25- ' array_api_compat/cupy' : files (
25+ ' array_api_compat/cupy' : [
2626 ' src/array_api_compat/cupy/__init__.py' ,
2727 ' src/array_api_compat/cupy/_aliases.py' ,
2828 ' src/array_api_compat/cupy/_info.py' ,
2929 ' src/array_api_compat/cupy/_typing.py' ,
3030 ' src/array_api_compat/cupy/fft.py' ,
3131 ' src/array_api_compat/cupy/linalg.py' ,
32- ) ,
32+ ] ,
3333
34- ' array_api_compat/dask' : files (
34+ ' array_api_compat/dask' : [
3535 ' src/array_api_compat/dask/__init__.py' ,
36- ) ,
36+ ] ,
3737
38- ' array_api_compat/dask/array' : files (
38+ ' array_api_compat/dask/array' : [
3939 ' src/array_api_compat/dask/array/__init__.py' ,
4040 ' src/array_api_compat/dask/array/_aliases.py' ,
4141 ' src/array_api_compat/dask/array/_info.py' ,
4242 ' src/array_api_compat/dask/array/fft.py' ,
4343 ' src/array_api_compat/dask/array/linalg.py' ,
44- ) ,
44+ ] ,
4545
46- ' array_api_compat/numpy' : files (
46+ ' array_api_compat/numpy' : [
4747 ' src/array_api_compat/numpy/__init__.py' ,
4848 ' src/array_api_compat/numpy/_aliases.py' ,
4949 ' src/array_api_compat/numpy/_info.py' ,
5050 ' src/array_api_compat/numpy/_typing.py' ,
5151 ' src/array_api_compat/numpy/fft.py' ,
5252 ' src/array_api_compat/numpy/linalg.py' ,
53- ) ,
53+ ] ,
5454
55- ' array_api_compat/torch' : files (
55+ ' array_api_compat/torch' : [
5656 ' src/array_api_compat/torch/__init__.py' ,
5757 ' src/array_api_compat/torch/_aliases.py' ,
5858 ' src/array_api_compat/torch/_info.py' ,
5959 ' src/array_api_compat/torch/_typing.py' ,
6060 ' src/array_api_compat/torch/fft.py' ,
6161 ' src/array_api_compat/torch/linalg.py' ,
62- ) ,
62+ ] ,
6363}
6464
65+ sources = {}
66+ foreach subdir, paths : sources_raw
67+ sources += { subdir : files (paths) }
68+ endforeach
69+
6570foreach subdir, files : sources
6671 py.install_sources(files, subdir : subdir)
6772endforeach
0 commit comments