Permalink
Browse files

Setup env to compile python programs

  • Loading branch information...
1 parent e890f00 commit 2c8b1f18eebd8e82f592fcd9c1561aa611054261 @ylatuya ylatuya committed Sep 2, 2011
Showing with 4 additions and 0 deletions.
  1. +1 −0 README
  2. +3 −0 ossbuild/defaults.ossbuildrc
View
@@ -31,6 +31,7 @@ On Linux:
* bison
* yasm
* flex
+ * Install Python27 with wine: $wine msiexec /i /path/to/installer/python2.7.msi
Install ossbuild
@@ -208,3 +208,6 @@ os.environ['STRIP']= _HOST + '-strip'
os.environ['WINDRES']= _HOST + '-windres'
os.environ['PKG_CONFIG_LIBDIR']=os.path.join(prefix, 'lib', 'pkgconfig')
os.environ['PKG_CONFIG_PATH']=os.path.join(prefix, 'lib', 'pkgconfig')
+if platform.system() != 'Windows':
+ os.environ['PYTHON'] = "wine %s/.wine/drive_c/Python27/python.exe" % os.path.expanduser('~')
+ os.environ['CPPFLAGS'] += " -I%s/.wine/drive_c/Python27/include/" % os.path.expanduser('~')

0 comments on commit 2c8b1f1

Please sign in to comment.