File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ ipdb==0.13.9
1010ipython==7.30.1
1111jedi==0.18.1
1212matplotlib-inline==0.1.3
13- -e git+https://github.com/escherba/python-metrohash@73e7ff6160a666ec7075a7f02d1a14031a1385c3 #egg=metrohash
13+ -e git+https://github.com/escherba/python-metrohash@c6d18bcf22fa6e4a0bc8a98fb8f94f2c60d4f12d #egg=metrohash
1414numpy==1.21.5
1515packaging==21.3
1616parso==0.8.3
Original file line number Diff line number Diff line change 11#!/usr/bin/env python
22# -*- coding: utf-8 -*-
3+ import warnings
34from os .path import join , dirname
45from setuptools import setup
56from setuptools .extension import Extension
67from setuptools .dist import Distribution
78
89try :
910 from cpuinfo import get_cpu_info
10- have_sse42 = 'sse4.2' in get_cpu_info ()['flags' ]
11- except Exception :
12- have_sse42 = False
11+ cpu_info = get_cpu_info ()
12+ HAVE_SSE42 = 'sse4_2' in cpu_info ['flags' ]
13+ except Exception as exc :
14+ HAVE_SSE42 = False
1315
1416try :
1517 from Cython .Distutils import build_ext
@@ -33,8 +35,11 @@ def is_pure(self):
3335-Wno-unused-function
3436""" .split ()
3537
36- if have_sse42 :
38+ if HAVE_SSE42 :
39+ warnings .warn ("Compiling with SSE4.2 enabled" )
3740 CXXFLAGS .append ('-msse4.2' )
41+ else :
42+ warnings .warn ("compiling without SSE4.2 support" )
3843
3944
4045INCLUDE_DIRS = ['include' ]
@@ -77,7 +82,7 @@ def is_pure(self):
7782 )
7883
7984
80- VERSION = '0.1.0.post4 '
85+ VERSION = '0.1.0.post5 '
8186URL = "https://github.com/escherba/python-metrohash"
8287
8388
You can’t perform that action at this time.
0 commit comments