Skip to content
This repository was archived by the owner on Aug 5, 2021. It is now read-only.

Commit ac634b6

Browse files
committed
fixes for py27
1 parent 1aebf58 commit ac634b6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

setup.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@
4242
base_dir = os.path.dirname(os.path.relpath(__file__))
4343
src_main_c_dir = os.path.join(base_dir, 'src', 'main', 'c')
4444
src_test_py_dir = os.path.join(base_dir, 'src', 'test', 'python')
45-
# src_main_c_dir = 'src/main/c'
46-
# src_test_py_dir = 'src/test/python'
4745

4846
do_maven = False
4947
if '--maven' in sys.argv:
@@ -146,9 +144,8 @@
146144

147145
# ----------- Functions -------------
148146
def _build_dir():
149-
#return os.path.join(base_dir, 'build/lib.macosx-10.12-x86_64-3.6')
150147
# this is hacky, but use distutils logic to get build dir. see: distutils.command.build
151-
plat = ".%s-%d.%d" % (get_platform(), *sys.version_info[:2])
148+
plat = ".%s-%d.%d" % (get_platform(), sys.version_info.major, sys.version_info.minor)
152149
return os.path.join('build', 'lib' + plat)
153150

154151
def package_maven():
@@ -245,6 +242,7 @@ def _copy_jpyutil():
245242
def _build_jpy():
246243
package_maven()
247244
_copy_jpyutil()
245+
_write_jpy_config()
248246

249247

250248
def test_suite():

0 commit comments

Comments
 (0)