Skip to content

Instantly share code, notes, and snippets.

@eyliu
Created August 29, 2011 16:18
Show Gist options
  • Save eyliu/1178748 to your computer and use it in GitHub Desktop.
Save eyliu/1178748 to your computer and use it in GitHub Desktop.
Configuration for RODIS for Mac OS X with dependencies provided by Homebrew
# Configuration file for RODIS:
# http://photonics.intec.ugent.be/research/facilities/design/rodis/default.htm
#
# Based on the configuration file for Ubuntu Linux:
# http://photonics.intec.ugent.be/research/facilities/design/rodis/setup-ubuntu-hardy-
# howto.txt
#
# Boost.Python provided by Homebrew: http://mxcl.github.com/homebrew/
cc = "gcc"
cxx = "g++"
f77 = "gfortran"
link = 'g++'
# Compiler flags.
flags = "-Wall -pipe -O2 -fno-strength-reduce -arch x86_64"
link_flags = "-O2 -arch x86_64"
# Include directories. (boost and python)
include_dirs = ["/Library/Python/2.6/site-packages/",
"/usr/local/include/boost/",
"/usr/local/include/boost/python/",
"/usr/include/python2.6/"]
# Library directories.(those are the libraries of the compiler, python and
# boost)
library_dirs = ["/usr/local/lib/","/usr/lib/"]
# Library names.
libs = ["python2.6" ,"boost_python-mt" ]
# Command to strip library of excess symbols.
dllsuffix = ".dylib"
strip_command = ""
# look -recursive- in the dir tree and save files in a -special- array of
# arrays
import os
import os.path
def find_all_files(path, name):
filelist = []
full_path = path+name+"/"
all_files_dirs = os.listdir(full_path)
for n in all_files_dirs:
if os.path.isfile(full_path+n):
filelist.append(full_path+ n)
elif os.path.isdir(full_path+n):
find_all_files(path,name+"/"+n)
doclist.append([name, filelist])
# all documentation
docpath = "/Users/eyliu/Downloads/rodis/"
doclist = []
docname = "doc"
find_all_files(docpath, docname)
# add more extra files
extra_files = doclist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment