125 |
# Intel's compiler uses regular expressions improperly and emits a warning |
# Intel's compiler uses regular expressions improperly and emits a warning |
126 |
# about failing to find the compilers. This warning can be safely ignored. |
# about failing to find the compilers. This warning can be safely ignored. |
127 |
|
|
128 |
env = Environment(tools = ['default'], options = vars) |
# PATH is needed so the compiler, linker and tools are found if they are not |
129 |
|
# in default locations. |
130 |
|
env = Environment(tools = ['default'], options = vars, |
131 |
|
ENV = {'PATH': os.environ['PATH']}) |
132 |
if env['tools_names'] != 'default': |
if env['tools_names'] != 'default': |
133 |
env = Environment(tools = ['default'] + env['tools_names'], options = vars) |
env = Environment(tools = ['default'] + env['tools_names'], options = vars, |
134 |
|
ENV = {'PATH' : os.environ['PATH']}) |
135 |
|
|
136 |
if options_file: |
if options_file: |
137 |
opts_valid=False |
opts_valid=False |
301 |
else: |
else: |
302 |
LD_LIBRARY_PATH_KEY='LD_LIBRARY_PATH' |
LD_LIBRARY_PATH_KEY='LD_LIBRARY_PATH' |
303 |
|
|
304 |
# the following env variables are exported for the unit tests, PATH is needed |
# the following env variables are exported for the unit tests |
|
# so the compiler/linker is found if they are not in default locations. |
|
305 |
|
|
306 |
for key in 'OMP_NUM_THREADS', 'ESCRIPT_NUM_PROCS', 'ESCRIPT_NUM_NODES': |
for key in 'OMP_NUM_THREADS', 'ESCRIPT_NUM_PROCS', 'ESCRIPT_NUM_NODES': |
307 |
try: |
try: |
766 |
##################### Targets to build the documentation ##################### |
##################### Targets to build the documentation ##################### |
767 |
|
|
768 |
env.Alias('api_epydoc','install_all') |
env.Alias('api_epydoc','install_all') |
769 |
env.Alias('docs', ['examples_tarfile', 'examples_zipfile', 'api_epydoc', 'api_doxygen', 'guide_pdf', 'guide_html','install_pdf', 'cookbook_pdf']) |
env.Alias('docs', ['examples_tarfile', 'examples_zipfile', 'api_epydoc', 'api_doxygen', 'guide_pdf', 'install_pdf', 'cookbook_pdf']) |
770 |
env.Alias('release_prep', ['docs', 'install_all']) |
env.Alias('release_prep', ['docs', 'install_all']) |
771 |
|
|
772 |
if not IS_WINDOWS: |
if not IS_WINDOWS: |
785 |
# Make sure that the escript wrapper is in place |
# Make sure that the escript wrapper is in place |
786 |
if not os.path.isfile(os.path.join(env['bininstall'], 'run-escript')): |
if not os.path.isfile(os.path.join(env['bininstall'], 'run-escript')): |
787 |
print("Copying escript wrapper.") |
print("Copying escript wrapper.") |
788 |
Execute(Copy(os.path.join(env['bininstall'],'escript'), 'bin/run-escript')) |
Execute(Copy(os.path.join(env['bininstall'],'run-escript'), 'bin/run-escript')) |
789 |
|
|