Skip to content

Commit

Permalink
setup.py issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jpn-- committed Mar 13, 2017
1 parent 77db68c commit 50e9daf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def read(*filenames, **kwargs):
local_library_dirs = []
local_includedirs = []
local_macros = [('I_AM_MAC','1'), ('SQLITE_ENABLE_RTREE','1'), ]
local_extra_compile_args = ['-std=gnu++11', '-w', '-arch', 'i386', '-arch', 'x86_64']# +['-framework', 'Accelerate']
local_extra_compile_args = ['-std=gnu++11', '-stdlib=libc++', '-w', '-arch', 'i386', '-arch', 'x86_64']# +['-framework', 'Accelerate']
local_apsw_compile_args = ['-w']
local_extra_link_args = ['-framework', 'Accelerate']
local_data_files = [('/usr/local/bin', [file_at('bin','larch')]), ]
Expand Down Expand Up @@ -294,6 +294,7 @@ def read(*filenames, **kwargs):
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
],
setup_requires=['nose>=1.3.7'],
)


5 changes: 4 additions & 1 deletion setup_sqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,9 @@ def file_at(*arg):



def build_sqlite(basepath=buildbase):
def build_sqlite(basepath=None):
if basepath is None:
basepath = buildbase
from distutils.ccompiler import new_compiler

# Create compiler with default options
Expand All @@ -342,6 +344,7 @@ def build_sqlite(basepath=buildbase):
need_to_update = False
for eachsource in source:
try:
print("checking filemod time on",os.path.join(shlib_folder(basepath), dylib_name_style.format(name)))
need_to_update = need_to_update or (os.path.getmtime(eachsource) > os.path.getmtime(os.path.join(shlib_folder(basepath), dylib_name_style.format(name))))
except FileNotFoundError:
need_to_update = True
Expand Down

0 comments on commit 50e9daf

Please sign in to comment.