This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import distutils.sysconfig | |
import os | |
import os.path | |
import sys | |
import pprint | |
from pathlib import Path | |
cfg_vars_list = ['CC', 'CXX', 'OPT', 'BASECFLAGS', 'CCSHARED', 'LDSHARED', 'SO', 'BINDIR'] | |
cfg_vars = {v: distutils.sysconfig.get_config_vars(v) for v in cfg_vars_list} | |
# cfg_vars['LIBPATH'] = "D:/software/python2714_32/libs" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Timer unit: 1e-06 s | |
Total time: 0.018178 s | |
File: /home/bdeegan/clients/mongodb/mongo/src/third_party/scons-3.0.4/scons-local-3.0.4/SCons/Node/FS.py | |
Function: _add_strings_to_dependency_map at line 3346 | |
Line # Hits Time Per Hit % Time Line Contents | |
============================================================== | |
3346 @profile | |
3347 def _add_strings_to_dependency_map(self, dmap): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Williams-MacBook-Pro-2:tmp bdbaddog$ python bill_try_dict_keyerror.py | |
hiit: 0.04 | |
hii : 0.03 | |
nit : 0.82 | |
nii : 0.07 | |
Williams-MacBook-Pro-2:tmp bdbaddog$ python3.7 bill_try_dict_keyerror.py | |
hiit: 0.04 | |
hii : 0.03 | |
nit : 0.41 | |
nii : 0.03 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
virtualenv venv | |
. venv/bin/activate | |
pip install --index-url https://test.pypi.org/simple/ scons==3.0.5a3 | |
scons --version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AddOption('--show_bug', action='store_true', dest='show_bug', default=False, | |
help="Show the config=force bug") | |
env=Environment() | |
conf = Configure(env) | |
if not conf.CheckCXXHeader('vector.h'): | |
print 'vector.h must be installed!' | |
# Don't need this to cause the issue | |
# env = conf.Finish() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(Pdb) p id(e1) | |
53016704 | |
(Pdb) p id(e2) | |
53016704 | |
(Pdb) p id(str(e1)) | |
53001080 | |
(Pdb) p id(str(e2)) | |
53001080 | |
(Pdb) str(e1) == str(e2) | |
True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In Tool example _example_scanner(src/file1.exin, env, ()) [Environment:first one] | |
scons: *** [src/file1.example] TypeError : _example_target_scanner() takes exactly 1 argument (3 given) | |
scons: internal stack trace: | |
File "/Users/bdbaddog/devel/scons/git/as_scons/src/script/../engine/SCons/Job.py", line 199, in start | |
task.prepare() | |
File "/Users/bdbaddog/devel/scons/git/as_scons/src/script/../engine/SCons/Script/Main.py", line 176, in prepare | |
return SCons.Taskmaster.OutOfDateTask.prepare(self) | |
File "/Users/bdbaddog/devel/scons/git/as_scons/src/script/../engine/SCons/Taskmaster.py", line 179, in prepare | |
self.exception_raise() | |
File "/Users/bdbaddog/devel/scons/git/as_scons/src/script/../engine/SCons/Taskmaster.py", line 559, in _exception_raise |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""SCons.Node | |
The Node package for the SCons software construction utility. | |
This is, in many ways, the heart of SCons. | |
A Node is where we encapsulate all of the dependency information about | |
any thing that SCons can build, or about any thing which SCons can use | |
to build some other thing. The canonical "thing," of course, is a file, | |
but a Node can also represent something remote (like a web page) or |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# adjust to your path | |
sphinx-apidoc -f -o source/ ../../git/as_scons/src/engine/ "/Users/bdbaddog/devel/scons/git/as_scons/src/engine/SCons/*Tests.py" | |
# do this then answer the questions | |
sphinx-quickstart | |
# Then replace source/conf.py with below, but adjust the paths which are /Users/bdbaddog... | |
# replace source/index.rst with below |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
env=Environment() | |
SConscript('src/SConscript',exports='env') |