Skip to content

Instantly share code, notes, and snippets.

@ntmoe
Last active December 11, 2015 21:18
Show Gist options
  • Save ntmoe/4661001 to your computer and use it in GitHub Desktop.
Save ntmoe/4661001 to your computer and use it in GitHub Desktop.
Patch for freesteam-2.1 on OS X 10.8.2 with Homebrew Python
Binary files freesteam-2.1/.DS_Store and freesteam-2.1-new/.DS_Store differ
Binary files freesteam-2.1/.svn/.DS_Store and freesteam-2.1-new/.svn/.DS_Store differ
Binary files freesteam-2.1/.svn/wc.db and freesteam-2.1-new/.svn/wc.db differ
diff -rupN freesteam-2.1/SConstruct freesteam-2.1-new/SConstruct
--- freesteam-2.1/SConstruct 2013-01-28 17:39:39.000000000 -0600
+++ freesteam-2.1-new/SConstruct 2013-01-28 17:40:10.000000000 -0600
@@ -168,7 +168,8 @@ if platform.system()=="Windows":
)
else:
env = Environment(
- ENV={"PATH":os.environ['PATH']}
+ ENV={"PATH":os.environ['PATH'],
+ "PKG_CONFIG_PATH":os.environ['PKG_CONFIG_PATH']}
, GSL_STATIC = default_gsl_static
, toolpath=['scons']
, tools=['default']+tools
diff -rupN freesteam-2.1/python/SConscript freesteam-2.1-new/python/SConscript
--- freesteam-2.1/python/SConscript 2013-01-28 17:39:39.000000000 -0600
+++ freesteam-2.1-new/python/SConscript 2013-01-28 17:40:24.000000000 -0600
@@ -36,6 +36,7 @@ if env.get('HAVE_PYTHON'):
python_env['SHLIBSUFFIX']=".pyd"
elif platform.system()=="Darwin":
python_env['SHLIBSUFFIX']='.so'
+ python_env.AppendUnique(LIBPATH=[distutils.sysconfig.PREFIX+"/lib"])
swiglib = python_env.SharedLibrary("freesteam",['freesteam.i']
, SHLIBPREFIX = '_'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment