forked from SoarGroup/Soar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Scons update, python 3 support, OSX and Windows build fixes
- Python 3 porting - Merged in pull request pr327 that updated scons to 3.1.2, changes all print calls to python 3 format and made the byte->string conversions needed for linux compilation - Added some more byte->string comparison (main and java scons scripts) - Conversion of python 3 filter objects to lists (main scons script) - Further updated to scons 4.0.1. Removed all earlier versions of scons. - Should now always build python 3 bindings, even on OSX. - Windows fixes - Windows batch file no longer uses Windows registry to find python. The old method was finding python that was installed via Windows app installer instead of the one installed by Visual Studio that has the lib/includes it needs. New batch file now uses the first result returned from 'where python'. FYI, this code only runs first time batch script runs. Delete user-env.bat to force it to find python again.There seems to be a lot of different ways that python may be installed, so this could use some more testing. - Windows batch file should now be able to handle spaces in file names - Removed /nowarn:4503 flag on Windows - Tcl plugin now compiles again. Changed it so that that script looks for tcl86t.lib instead of tcl86.lib - OSX fixes - No longer sets lib_path and include path using DYLD_LIBRARY_PATH and CPATH because they are no longer available due to SIP (System Integrity Protection) - Debugger will now compile again. No longer links to JavaVM framework. It wasn't able to find it before and seems to compile fine without that option. - No longer builds SVS viewer. OpenGL library that it uses no longer compiles on OSX and needs to be updated.
- Loading branch information
Showing
1,533 changed files
with
417,199 additions
and
8,384 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,9 @@ | |
# Project: Soar <http://soar.googlecode.com> | ||
# Author: Jonathan Voigt <[email protected]> | ||
# | ||
|
||
from __future__ import print_function | ||
|
||
import os | ||
import sys | ||
import itertools | ||
|
@@ -17,10 +20,10 @@ def ConfigureJNI(env): | |
# /urs/libexec/java_home will give us | ||
try: | ||
p = subprocess.Popen(['/usr/libexec/java_home'], stdout = subprocess.PIPE) | ||
base = p.stdout.readline().split()[-1] | ||
base = p.stdout.readline().split()[-1].decode() | ||
p.wait() | ||
except OSError: | ||
print >>sys.stderr, 'Error running /usr/libexec/java_home to get java home' | ||
print('Error running /usr/libexec/java_home to get java home', file=sys.stderr) | ||
Exit(1) | ||
if (not os.path.exists(base)): | ||
base = '/System/Library/Frameworks/JavaVM.framework' | ||
|
@@ -35,7 +38,7 @@ def ConfigureJNI(env): | |
base = os.path.split(jcdir)[0] | ||
|
||
if sys.platform == 'darwin': | ||
print 'Looking for Mac headers at ', os.path.join(base, 'include') | ||
print('Looking for Mac headers at ', os.path.join(base, 'include')) | ||
if os.path.exists(os.path.join(base, 'include')): | ||
# JDK 7+ | ||
headers = [os.path.join(base, 'include')] | ||
|
@@ -64,9 +67,9 @@ def get_headers(d): | |
Import('env', 'compiler') | ||
config = ConfigureJNI(env) | ||
if config == None: | ||
print "Could not configure Java. If you know where java is on your system," | ||
print "set environment variable JAVA_HOME to point to the directory containing" | ||
print "the Java include, bin, and lib directories." | ||
print("Could not configure Java. If you know where java is on your system,") | ||
print("set environment variable JAVA_HOME to point to the directory containing") | ||
print("the Java include, bin, and lib directories.") | ||
Return() | ||
|
||
clone = env.Clone() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.