Skip to content

Commit 7bc3958

Browse files
Update setup, return doublefast compress, fix message
1 parent 0ecb3e5 commit 7bc3958

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

setup.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
vdn=os.path.dirname( os.path.abspath(sys.argv[0]))
2929
vpath=os.path.join(vdn,vpath)
3030
if os.path.exists(vpath):
31-
print("use 3xisting %s file" % vpath)
31+
print("use existing %s file" % vpath)
3232
f = open(vpath,"r" )
3333
PKG_VERSION_STR = f.read().strip()
3434
f.close()
@@ -368,18 +368,13 @@ def which(bin_exe):
368368
'gcc': ['-O3',],
369369
}
370370
###
371-
# DVERSION - pass module version string
372-
# DDYNAMIC_BMI2 - disable BMI2 amd64 asembler code - can't build it, use CFLAGS with -march= bdver4, znver1/2/3, native
373-
# DZSTD_DISABLE_ASM=1 - disable ASM inlines
374-
375371

376372
for comp in COPT:
377373
if comp == 'msvc':
378374
COPT[comp].extend([ '/DMOD_VERSION=%s' % PKG_VERSION_STR, '/DDYNAMIC_BMI2=%d' % ENABLE_ASM_BMI2, '/DZSTD_DISABLE_ASM=%d' % DISABLE_ASM ]),
379375
else:
380376
COPT[comp].extend([ '-DMOD_VERSION=%s' % PKG_VERSION_STR, '-DDYNAMIC_BMI2=%d' % ENABLE_ASM_BMI2, '-DZSTD_DISABLE_ASM=%d' % DISABLE_ASM ]),
381377

382-
383378
if not SUP_EXTERNAL:
384379
for comp in COPT:
385380
if comp == 'msvc':
@@ -528,7 +523,7 @@ def build_extensions(self):
528523
'compress/zstd_preSplit.c',
529524
'compress/zstdmt_compress.c',
530525
'compress/zstd_fast.c',
531-
# 'compress/zstd_double_fast.c',
526+
'compress/zstd_double_fast.c',
532527
'compress/zstd_lazy.c',
533528
'compress/zstd_opt.c',
534529
'compress/zstd_ldm.c',
@@ -562,11 +557,6 @@ def build_extensions(self):
562557
zstdFiles.append('src/util.c')
563558
zstdFiles.append('src/python-zstd.c')
564559

565-
#for f in [
566-
# 'decompress/zstd_decompress.c',
567-
# 'decompress/zstd_ddict.c',
568-
# ]:
569-
# zstdFiles.append('zstd/lib/'+f)
570560

571561
# Another dirty hack
572562
def my_test_suite():

0 commit comments

Comments
 (0)