diff options
| author | Michael Forney <mforney@mforney.org> | 2021-01-07 22:34:24 -0800 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2021-01-07 23:08:33 -0800 |
| commit | 7d8c07c6f71584091780d3a66c9d822fc1467e61 (patch) | |
| tree | b3a1898fc68f2a09c2770a077ef1384fa50cfecf /pkg/python | |
| parent | b1c4a527b70035b3e3a1fd4fbbb7f2202789f254 (diff) | |
python: Use dot syntax for table access
Diffstat (limited to 'pkg/python')
| -rw-r--r-- | pkg/python/gen.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/python/gen.lua b/pkg/python/gen.lua index 50968a4a..be91839c 100644 --- a/pkg/python/gen.lua +++ b/pkg/python/gen.lua @@ -10,12 +10,12 @@ pkg.deps = {'pkg/linux-headers/headers'} local libs = {} local modules = load 'modules.lua' -if modules['_ctypes'] then +if modules._ctypes then cflags{'-isystem $builddir/pkg/libffi/include'} table.insert(pkg.deps, 'pkg/libffi/headers') table.insert(libs, 'libffi/libffi.a') end -if modules['_hashlib'] or modules['_ssl'] then +if modules._hashlib or modules._ssl then cflags{'-isystem $builddir/pkg/libressl/include'} table.insert(pkg.deps, 'pkg/libressl/headers') table.insert(libs, { @@ -23,12 +23,12 @@ if modules['_hashlib'] or modules['_ssl'] then 'libressl/libcrypto.a', }) end -if modules['pyexpat'] then +if modules.pyexpat then cflags{'-isystem $builddir/pkg/expat/include'} table.insert(pkg.deps, 'pkg/expat/headers') table.insert(libs, 'expat/libexpat.a.d') end -if modules['zlib'] then +if modules.zlib then cflags{'-isystem $builddir/pkg/zlib/include'} table.insert(pkg.deps, 'pkg/zlib/headers') table.insert(libs, 'zlib/libz.a') |
