Skip to content

Commit f7dba55

Browse files
author
Lawrence Nahum
committed
enable elements by default in released artifacts
1 parent f913b28 commit f7dba55

File tree

6 files changed

+9
-17
lines changed

6 files changed

+9
-17
lines changed

.gitlab-ci.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ linux_release:
1010
- ga
1111
script:
1212
- cd $CI_PROJECT_DIR
13-
- ENABLE_ELEMENTS=--enable-elements ./tools/build_python_wheels.sh
14-
- ENABLE_ELEMENTS=--enable-elements python setup.py sdist --dist-dir ./wally_core
15-
- ENABLE_ELEMENTS=--enable-elements ./tools/build_android_libraries.sh
16-
- ENABLE_ELEMENTS=--enable-elements ./tools/build_js_bindings.sh
13+
- ./tools/build_python_wheels.sh
14+
- python setup.py sdist --dist-dir ./wally_core
15+
- ./tools/build_android_libraries.sh
16+
- ./tools/build_js_bindings.sh
1717
- mv release wallycore-android-jni
1818
- tar cvf wally_dist/wallycore-android-jni.tar wallycore-android-jni
1919
- gzip -9 wally_dist/wallycore-android-jni.tar
@@ -49,7 +49,7 @@ ubuntu_release:
4949
- ga
5050
script:
5151
- cd $CI_PROJECT_DIR
52-
- ENABLE_ELEMENTS=--enable-elements ./tools/build_python_wheels.sh python3
52+
- ./tools/build_python_wheels.sh python3
5353

5454
osx_release:
5555
tags:
@@ -119,7 +119,6 @@ windows10_release:
119119
- wally_dist\*
120120
script:
121121
- cd %CI_PROJECT_DIR%
122-
- set ENABLE_ELEMENTS=-DBUILD_ELEMENTS=1
123122
- call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64
124123
- tools\msvc\wheel.bat
125124

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,6 @@ If you wish to explicitly choose the python version to use, set the
8686
`PYTHON_VERSION` environment variable (to e.g. `2`, `2.7`, `3` etc) before
8787
running `setup.py` or (when compiling manually) `./configure`.
8888

89-
To build with Elements/Liquid support, set:
90-
91-
```
92-
ENABLE_ELEMENTS="--enable-elements"
93-
```
94-
9589
Before running pip.
9690

9791
You can also install the binary wally releases using the released

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,9 @@ def call(cmd):
8888
subprocess.check_call(cmd.split(' '), cwd=abs_path)
8989

9090
# Run the autotools/make build to generate a python extension module
91-
extra_build_options = os.getenv('ENABLE_ELEMENTS', '')
9291
call('./tools/cleanup.sh')
9392
call('./tools/autogen.sh')
94-
call('./configure --enable-swig-python --enable-ecmult-static-precomputation {}'.format(extra_build_options))
93+
call('./configure --enable-swig-python --enable-ecmult-static-precomputation --enable-elements')
9594
call('make -j{}'.format(multiprocessing.cpu_count()))
9695

9796
# Copy the so that has just been built to the build_dir that distutils expects it to be in

tools/build_android_libraries.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ for arch in $ARCH_LIST; do
3838
fi
3939

4040
# What we want built
41-
useropts="--enable-swig-java $ENABLE_ELEMENTS --enable-ecmult-static-precomputation"
41+
useropts="--enable-swig-java --enable-elements --enable-ecmult-static-precomputation"
4242

4343
# Configure and build with the above options
4444
android_build_wally $arch $toolsdir $api $useropts

tools/build_js_bindings.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e
44

55
tools/cleanup.sh
66
tools/autogen.sh
7-
./configure --enable-js-wrappers --disable-swig-python --disable-swig-java --enable-ecmult-static-precomputation $DEBUG_WALLY $ENABLE_ELEMENTS
7+
./configure --enable-js-wrappers --disable-swig-python --disable-swig-java --enable-ecmult-static-precomputation --enable-elements $DEBUG_WALLY
88
num_jobs=4
99
if [ -f /proc/cpuinfo ]; then
1010
num_jobs=$(grep ^processor /proc/cpuinfo | wc -l)

tools/msvc/swig.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
REM You need to set SWIG_PATH to the location where the swig zip
22
REM file is expanded to
3-
%SWIG_PATH%\swig -python -Isrc -I%SWIG_PATH%\Lib\python %ENABLE_ELEMENTS% src\swig_python\swig.i
3+
%SWIG_PATH%\swig -python -Isrc -I%SWIG_PATH%\Lib\python -DBUILD_ELEMENTS=1 src\swig_python\swig.i
44
copy src\swig_python\wallycore.py + src\swig_python\python_extra.py_in src\swig_python\wallycore\__init__.py /B
55
del src\swig_python\wallycore.py

0 commit comments

Comments
 (0)