Skip to content

Commit

Permalink
Merge pull request #18 from tnakazato/support-python3.8-build
Browse files Browse the repository at this point in the history
Support python3.8 build
  • Loading branch information
tnakazato authored Jun 27, 2022
2 parents 7060f13 + 301f84c commit e2dd9c2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from distutils.command.build import build
from distutils.command.build_ext import build_ext
from distutils.command.config import config
from distutils.sysconfig import get_python_inc
from distutils.sysconfig import get_python_inc, get_python_version
from setuptools import setup, find_packages, Command


Expand Down Expand Up @@ -272,7 +272,7 @@ def initialize_options(self):

is_git_ok, is_curl_ok, is_wget_ok = check_command_availability(['git', 'curl', 'wget'])
package = 'sakura'
version = 'libsakura-5.0.8'
version = 'libsakura-5.1.0'
zipname = '{}.zip'.format(version)
tgzname = '{}-{}.tgz'.format(package, version)
base_url = 'https://github.com/tnakazato/sakura'
Expand Down Expand Up @@ -391,6 +391,8 @@ def finalize_options(self):
if self.python_library is None:
self.python_library = get_python_library(self.python_include_dir)

self.python_version = get_python_version()

debug_print_user_options(self)
print('fftw3-root-dir={}'.format(self.fftw3_root_dir))

Expand All @@ -406,6 +408,8 @@ def __configure_cmake_command(self):

cmd += ' -DPYTHON_LIBRARY={}'.format(self.python_library)

cmd += f' -DPYTHON_VERSION={self.python_version}'

if self.cxx_compiler is not None:
cmd += ' -DCMAKE_CXX_COMPILER={}'.format(self.cxx_compiler)

Expand Down

0 comments on commit e2dd9c2

Please sign in to comment.