11#!/usr/bin/env python
22# -*- coding: utf-8 -*-
33import os
4- import warnings
54from os .path import join , dirname
65from setuptools import setup
76from setuptools .extension import Extension
@@ -32,8 +31,9 @@ def is_pure(self):
3231
3332CXXFLAGS = []
3433
34+ print (f"building for platform: { os .name } " )
3535if os .name == "nt" :
36- CXXFLAGS .extend (["/O3 " ])
36+ CXXFLAGS .extend (["/O2 " ])
3737else :
3838 CXXFLAGS .extend ([
3939 "-O3" ,
@@ -43,10 +43,10 @@ def is_pure(self):
4343
4444
4545if 'sse4_2' in CPU_FLAGS :
46- warnings . warn ("Compiling with SSE4.2 enabled" )
46+ print ("Compiling with SSE4.2 enabled" )
4747 CXXFLAGS .append ('-msse4.2' )
4848else :
49- warnings . warn ("compiling without SSE4.2 support" )
49+ print ("compiling without SSE4.2 support" )
5050
5151
5252INCLUDE_DIRS = ['include' ]
@@ -67,6 +67,7 @@ def is_pure(self):
6767EXT_MODULES = []
6868
6969if USE_CYTHON :
70+ print ("building extension using Cython" )
7071 CMDCLASS ['build_ext' ] = build_ext
7172 EXT_MODULES .append (
7273 Extension (
@@ -79,6 +80,7 @@ def is_pure(self):
7980 )
8081 )
8182else :
83+ print ("building extension w/o Cython" )
8284 EXT_MODULES .append (
8385 Extension (
8486 "metrohash" ,
@@ -91,7 +93,7 @@ def is_pure(self):
9193 )
9294
9395
94- VERSION = '0.1.1.post1 '
96+ VERSION = '0.1.1.post2 '
9597URL = "https://github.com/escherba/python-metrohash"
9698
9799
0 commit comments