Skip to content

Commit c55488d

Browse files
committed
Merge branch 'develop'
2 parents b8ce1f4 + 59ea45f commit c55488d

File tree

7 files changed

+1370
-185
lines changed

7 files changed

+1370
-185
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,7 @@ make benchmark
234234

235235
Number of branches: 1024 branches (can be increased)
236236

237-
Number of commits per branch: 2^32 = 4,294,967,295 commits
238-
239-
- This value can be increased to 64 bits
237+
Number of commits per branch: 2^64 = 18,446,744,073,709,551,615 commits
240238

241239
Concurrent db connections to the same db: XXX readers
242240

makefile

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,30 +124,48 @@ endif
124124
clean:
125125
rm -f *.o $(LIBRARY) $(LIBNICK1) $(LIBNICK2) $(LIBNICK3) $(LIBNICK4) $(SSHELL)
126126

127-
test: test/test.py
127+
test: test/test.py test/test-64bit-commit-ids.py test/varint.py
128128
ifeq ($(OS),Windows_NT)
129129
ifeq ($(PY_HOME),)
130130
@echo "PY_HOME is not set"
131131
else
132132
cd $(PY_HOME)/DLLs && [ ! -f sqlite3-orig.dll ] && mv sqlite3.dll sqlite3-orig.dll || true
133133
cp litetree-0.1.dll $(PY_HOME)/DLLs/sqlite3.dll
134134
cp $(LMDBPATH)/lmdb.dll $(PY_HOME)/DLLs/lmdb.dll
135+
cd test && python -mpip install lmdb
135136
cd test && python test.py -v
137+
cd test && python test-64bit-commit-ids.py -v
136138
endif
137-
else ifeq ($(OS),OSX)
139+
else # not Windows
140+
ifneq ($(shell python -c "import lmdb" 2> /dev/null; echo $$?),0)
141+
sudo easy_install cffi
142+
cd test && sudo easy_install lmdb
143+
ifneq ($(shell python -c "import lmdb" 2> /dev/null; echo $$?),0)
144+
git clone --depth=1 https://github.com/dw/py-lmdb
145+
cd py-lmdb && sudo LMDB_FORCE_CPYTHON=1 python setup.py install
146+
ifneq ($(shell python -c "import lmdb" 2> /dev/null; echo $$?),0)
147+
sudo python -c "import cffi"
148+
sudo python -c "import lmdb"
149+
endif
150+
endif
151+
endif
152+
ifeq ($(OS),OSX)
138153
ifneq ($(shell python -c "import pysqlite2.dbapi2" 2> /dev/null; echo $$?),0)
139154
ifneq ($(shell [ -d $(LIBPATH2) ]; echo $$?),0)
140155
@echo "run 'sudo make install' first"
141156
endif
142-
git clone https://github.com/ghaering/pysqlite
157+
git clone --depth=1 https://github.com/ghaering/pysqlite
143158
cd pysqlite && echo "include_dirs=$(INCPATH)" >> setup.cfg
144159
cd pysqlite && echo "library_dirs=$(LIBPATH2)" >> setup.cfg
145160
cd pysqlite && python setup.py build
146161
cd pysqlite && sudo python setup.py install
147162
endif
148163
cd test && python test.py -v
149-
else
164+
cd test && python test-64bit-commit-ids.py -v
165+
else # Linux
150166
cd test && LD_LIBRARY_PATH=.. python test.py -v
167+
cd test && LD_LIBRARY_PATH=.. python test-64bit-commit-ids.py -v
168+
endif
151169
endif
152170

153171
benchmark: test/benchmark.py
@@ -165,7 +183,7 @@ ifneq ($(shell python -c "import pysqlite2.dbapi2" 2> /dev/null; echo $$?),0)
165183
ifneq ($(shell [ -d $(LIBPATH2) ]; echo $$?),0)
166184
@echo "run 'sudo make install' first"
167185
endif
168-
git clone https://github.com/ghaering/pysqlite
186+
git clone --depth=1 https://github.com/ghaering/pysqlite
169187
cd pysqlite && echo "include_dirs=$(INCPATH)" >> setup.cfg
170188
cd pysqlite && echo "library_dirs=$(LIBPATH2)" >> setup.cfg
171189
cd pysqlite && python setup.py build

0 commit comments

Comments
 (0)