File tree Expand file tree Collapse file tree 3 files changed +20
-2
lines changed
Expand file tree Collapse file tree 3 files changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,11 @@ build: ${VENV} clean ## Clean and build
2929 ${PYTHON} setup.py bdist_wheel ; \
3030 ls -lh dist
3131
32+ build-sync : ${VENV} clean # # Clean and build
33+ set -e ; \
34+ OBX_BUILD_SYNC=1 ${PYTHON} setup.py bdist_wheel ; \
35+ ls -lh dist
36+
3237${VENV} : ${VENVBIN}/activate
3338
3439venv-init :
@@ -49,6 +54,10 @@ depend: ${VENV} ## Prepare dependencies
4954 set -e ; \
5055 ${PYTHON} download-c-lib.py
5156
57+ depend-sync : ${VENV} # # Prepare dependencies
58+ set -e ; \
59+ ${PYTHON} download-c-lib.py --sync
60+
5261test : ${VENV} # # Test all targets
5362 set -e ; \
5463 ${PYTHON} -m pytest --capture=no --verbose
Original file line number Diff line number Diff line change 22import tarfile
33import zipfile
44import os
5+ import sys
56
67# Script used to download objectbox-c shared libraries for all supported platforms. Execute by running `make get-lib`
78# on first checkout of this repo and any time after changing the objectbox-c lib version.
89
910version = "v5.0.0" # see objectbox/c.py required_version
10- variant = 'objectbox-sync' # or 'objectbox-sync'
11+ variant = 'objectbox' # or 'objectbox-sync'
12+ if len (sys .argv ) > 1 and sys .argv [1 ] == '--sync' :
13+ variant = 'objectbox-sync'
1114
1215base_url = "https://github.com/objectbox/objectbox-c/releases/download/"
1316
Original file line number Diff line number Diff line change 1+ import os
2+
13import setuptools
24import objectbox
35
46with open ("README.md" , "r" ) as fh :
57 long_description = fh .read ()
68
9+ package_name = "objectbox"
10+ if "OBX_BUILD_SYNC" in os .environ :
11+ package_name = "objectbox-sync"
12+
713setuptools .setup (
8- name = "objectbox" ,
14+ name = package_name ,
915 version = str (objectbox .version ),
1016 author = "ObjectBox" ,
1117 description = "ObjectBox is a superfast lightweight database for objects" ,
You can’t perform that action at this time.
0 commit comments