File tree 5 files changed +35
-8
lines changed
5 files changed +35
-8
lines changed Original file line number Diff line number Diff line change 78
78
if : contains(matrix.os, 'ubuntu') && matrix.lua-version != 'bundle'
79
79
run : sudo apt-get install lib${{ matrix.lua-version }}-dev
80
80
81
+ - name : Setup Visual Studio
82
+ if : contains(matrix.os, 'windows')
83
+ uses : TheMrMilchmann/setup-msvc-dev@v3
84
+ with :
85
+ arch : x64
86
+
81
87
- name : Build wheel
82
88
run : python setup.py sdist build_ext -i -j6 bdist_wheel
83
89
env :
Original file line number Diff line number Diff line change @@ -128,6 +128,18 @@ jobs:
128
128
brew install automake libtool
129
129
ln -s /usr/local/bin/glibtoolize /usr/local/bin/libtoolize
130
130
131
+ - name : Setup Visual Studio for x64
132
+ if : contains(matrix.os, 'windows') && contains(matrix.only, 'win_amd64')
133
+ uses : TheMrMilchmann/setup-msvc-dev@v3
134
+ with :
135
+ arch : x64
136
+
137
+ - name : Setup Visual Studio for x86
138
+ if : contains(matrix.os, 'windows') && contains(matrix.only, 'win32')
139
+ uses : TheMrMilchmann/setup-msvc-dev@v3
140
+ with :
141
+ arch : x86
142
+
131
143
- name : Build wheels
132
144
133
145
with :
Original file line number Diff line number Diff line change @@ -8,29 +8,40 @@ environment:
8
8
# APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
9
9
# - python: 27-x64
10
10
# APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2013
11
+ - python : 312
12
+ arch : x86
13
+ - python : 312-x64
14
+ arch : x64
11
15
- python : 311
16
+ arch : x86
12
17
- python : 311-x64
18
+ arch : x64
13
19
- python : 310
20
+ arch : x86
14
21
- python : 310-x64
22
+ arch : x64
15
23
- python : 39
24
+ arch : x86
16
25
- python : 39-x64
26
+ arch : x64
17
27
- python : 38
28
+ arch : x86
18
29
- python : 38-x64
30
+ arch : x64
19
31
- python : 37
32
+ arch : x86
20
33
- python : 37-x64
21
- - python : 36
22
- - python : 36-x64
23
- - python : 35
24
- - python : 35-x64
34
+ arch : x64
25
35
26
36
install :
27
37
- SET PATH=C:\\Python%PYTHON%;c:\\Python%PYTHON%\\scripts;%PATH%
28
- - python -m pip.__main__ install -U pip wheel setuptools
38
+ - python -m pip.__main__ install -U pip wheel " setuptools!=72.0.0"
29
39
- pip install -r requirements.txt
30
40
- git submodule update --init --recursive
31
41
32
42
build : off
33
43
build_script :
44
+ - call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" %ARCH%
34
45
- python -u setup.py clean
35
46
- python -u setup.py build install --use-bundle
36
47
- python -u setup.py bdist_wheel --use-bundle
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ environment = {CFLAGS = "-O3 -g1 -pipe -fPIC -flto -march=armv8-a -mtune=cortex-
26
26
27
27
[tool .cibuildwheel .windows ]
28
28
archs = [" AMD64" , " x86" ]
29
+ test-command = " python -c \" import lupa\" && python -c \" import lupa.lua54\" && python -c \" import lupa.luajit21\" "
29
30
30
31
[tool .cibuildwheel .macos ]
31
32
# https://cibuildwheel.readthedocs.io/en/stable/faq/#what-to-provide suggests to provide
Original file line number Diff line number Diff line change @@ -363,9 +363,6 @@ def has_option(name):
363
363
# http://t-p-j.blogspot.com/2010/11/lupa-on-os-x-with-macports-python-26.html
364
364
# LuaJIT 2.1-alpha3 fails at runtime.
365
365
or (platform == 'darwin' and 'luajit' in os .path .basename (lua_bundle_path .rstrip (os .sep )))
366
- # Couldn't get the Windows build to work. See
367
- # https://luajit.org/install.html#windows
368
- or (platform .startswith ('win' ) and 'luajit' in os .path .basename (lua_bundle_path .rstrip (os .sep )))
369
366
# Let's restrict LuaJIT to x86_64 for now.
370
367
or (get_machine () not in ("x86_64" , "AMD64" ) and 'luajit' in os .path .basename (lua_bundle_path .rstrip (os .sep )))
371
368
)
You can’t perform that action at this time.
0 commit comments