| 42 | | 'VJ_BASE_DIR' : os.getenv('VJ_BASE_DIR', ''), |
|---|
| 43 | | 'VJ_DEPS_DIR' : os.getenv('VJ_DEPS_DIR', ''), |
|---|
| 44 | | 'BOOST_VERSION' : os.getenv('BOOST_VERSION', '1_32'), |
|---|
| 45 | | 'BOOST_TOOL' : os.getenv('BOOST_TOOL', 'vc71'), |
|---|
| 46 | | 'PYTHON_ROOT' : os.getenv('PYTHON_ROOT', ''), |
|---|
| 47 | | 'PYTHON_VERSION' : os.getenv('PYTHON_VERSION', sys.version[:3]), |
|---|
| 48 | | 'prefix' : r'C:\PyJuggler', |
|---|
| | 43 | 'VJ_BASE_DIR' : os.getenv('VJ_BASE_DIR', ''), |
|---|
| | 44 | 'VJ_DEPS_DIR' : os.getenv('VJ_DEPS_DIR', ''), |
|---|
| | 45 | 'CPPDOM_INCLUDES' : os.getenv('CPPDOM_INCLUDES',''), |
|---|
| | 46 | 'BOOST_VERSION' : os.getenv('BOOST_VERSION', '1_32'), |
|---|
| | 47 | 'BOOST_TOOL' : os.getenv('BOOST_TOOL', 'vc71'), |
|---|
| | 48 | 'PYTHON_ROOT' : os.getenv('PYTHON_ROOT', ''), |
|---|
| | 49 | 'PYTHON_VERSION' : os.getenv('PYTHON_VERSION', sys.version[:3]), |
|---|
| | 50 | 'prefix' : r'C:\PyJuggler', |
|---|
| | 99 | def findCppdomIncludeDir(potentialIncRoots): |
|---|
| | 100 | """ Attempt to search for cppdom include directory. If found return it. |
|---|
| | 101 | potentialIncRoots should be an 'include' directory to search in. |
|---|
| | 102 | """ |
|---|
| | 103 | found_dir = "" |
|---|
| | 104 | potential_dirs = [] |
|---|
| | 105 | for root in potentialIncRoots: |
|---|
| | 106 | if os.path.isdir(root): |
|---|
| | 107 | potential_dirs += [pj(root,d) for d in os.listdir(root) if d.count("cppdom")] |
|---|
| | 108 | |
|---|
| | 109 | # Sort them and reverse the order to get a list based on version. |
|---|
| | 110 | potential_dirs.sort() |
|---|
| | 111 | potential_dirs.reverse() |
|---|
| | 112 | |
|---|
| | 113 | for d in potential_dirs: |
|---|
| | 114 | if os.path.isfile(pj(d,'cppdom','version.h')): |
|---|
| | 115 | found_dir = d |
|---|
| | 116 | break |
|---|
| | 117 | |
|---|
| | 118 | return found_dir |
|---|
| | 119 | |
|---|