summaryrefslogtreecommitdiffstats
path: root/SCons
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #3941 from mwichmann/scandirWilliam Deegan2021-05-045-31/+37
|\ | | | | Some code modernization: fs layer methods and others
| * Reformat LocalFS to quiet sider complaintsMats Wichmann2021-05-031-3/+26
| | | | | | | | Signed-off-by: Mats Wichmann <mats@linux.com>
| * Some code modernizatoionMats Wichmann2021-05-035-28/+11
| | | | | | | | | | | | | | | | | | Remove obsolete __getslice__ and __setslice_ definitions add Node.fs.scandir to call new (Py3.5) os.scandir Node.fs.makedirs now passes the exist_ok flag Cachedir creation now uses this fs.makedirs with exist_ok=True Signed-off-by: Mats Wichmann <mats@linux.com>
* | Merge pull request #3940 from bdbaddog/fix_3933William Deegan2021-05-032-2/+26
|\ \ | |/ |/| Fix Issue #3933 and applelink's versioned shared library file and symlink naming.
| * Fix Issue #3933 debug output removed from SharedLibrary when SHLIBVERSION is ↵William Deegan2021-05-032-2/+26
| | | | | | | | specified. Also fixed shared library file naming, and symlink naming for applelink. Was libxyz.dylib.1.2.3 for example, is now libxyz.1.2.3.dylib
* | Merge branch 'master' into doc-actionWilliam Deegan2021-05-013-8/+18
|\ \
| * | Add simple unit-test for env.Whereis('')Mats Wichmann2021-04-231-0/+2
| | | | | | | | | | | | Signed-off-by: Mats Wichmann <mats@linux.com>
| * | Avoid exception if tool set to emptyMats Wichmann2021-04-232-8/+16
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | When the reproducer in issue #1742 was run on git head, it failed in a different way than in the issue: an exception "list index out of range", caused by the test setting CC="" in the Environment call(). While this is a rather unuseful thing to do in general, the resulting call to env.WhereIs should not throw an exception because the general WhereIs function ends up indexing into something that can't be indexed. Avoid this by returning None immediately if the list of names to look for is empty. Note this does _not_ fix issue 1742, it just avoids the new problem it was failing on. Signed-off-by: Mats Wichmann <mats@linux.com>
* | Tweaking of Action Objects docu, update Mkdir()Mats Wichmann2021-04-252-11/+2
|/ | | | | | | | | | | | Mostly it's just fiddling; did add a pointer to information on Chmod() on Windows, and that Mkdir() makes intermediate dirs and takes a list as well as a string. While resolving some doc questions, found the function used by Makedir() could be simplified by passing exist_ok=True to os.makedirs(). Signed-off-by: Mats Wichmann <mats@linux.com>
* Merge pull request #3825 from grossag/topic/grossag/pythondynamicscanWilliam Deegan2021-04-193-44/+154
|\ | | | | Teach the Python scanner to find generated files and directories
| * Merge branch 'master' into topic/grossag/pythondynamicscanAdam Gross2021-01-0933-449/+577
| |\
| * | Address review feedbackAdam Gross2021-01-091-4/+5
| | | | | | | | | | | | Better handle relative imports if no paths are provided.
| * | Fix tests, implement smarter version of scannerAdam Gross2020-11-172-45/+142
| | |
| * | Fix all testsAdam Gross2020-11-171-12/+10
| | | | | | | | | | | | This change fixes all tests. It's still a a WIP change because I think the "imports" logic is wrong for file imports.
| * | [ci skip] Some fixes to the Python scanner and testAdam Gross2020-11-171-34/+42
| | |
| * | Fix up scanner a bitAdam Gross2020-11-161-6/+10
| | | | | | | | | | | | Tests still break
| * | Some initial fixesAdam Gross2020-11-162-30/+33
| | |
| * | First draft of teaching Python scanner about dynamic filesAdam Gross2020-11-132-31/+30
| | |
* | | Merge pull request #3723 from jcbrill/msvc-installed-vcsWilliam Deegan2021-04-191-1/+0
|\ \ \ | | | | | | | | Eliminate unnecessary calculation of the msvc installed list when finding installed visual studios
| * \ \ Merge branch 'master' into msvc-installed-vcs [ci skip]Joseph Brill2020-11-144-130/+124
| |\ \ \ | | |/ /
| * | | Merge branch 'master' into msvc-installed-vcs [ci skip]Joseph Brill2020-10-26141-1612/+1413
| |\ \ \
| * \ \ \ Merge branch 'master' into msvc-installed-vcsJoseph Brill2020-08-2716-642/+647
| |\ \ \ \
| * \ \ \ \ Merge branch 'master' into msvc-installed-vcs. Manually resolve conflicts in ↵Joseph Brill2020-08-245-6/+74
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | CHANGES.txt. [ci skip]
| * \ \ \ \ \ Merge branch 'master' into msvc-installed-vcs. Resolve conflicts in ↵Joseph Brill2020-08-081-11/+9
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | CHANGES.txt. [ci skip]
| * | | | | | | Remove get_installed_vcs call in Visual Studio find_vs_dir_by_vc method. ↵Joseph Brill2020-08-071-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update CHANGES.txt as well.
* | | | | | | | Merge pull request #3931 from mwichmann/writable-installWilliam Deegan2021-04-181-26/+56
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Restore setting of write bits on Install'd files
| * | | | | | | | [PR 3931] add a testcaseMats Wichmann2021-04-181-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Undo the doc change which describes what happens - seems better not to promise about permissions of installed files. Did the header change on Install tests. Signed-off-by: Mats Wichmann <mats@linux.com>
| * | | | | | | | Restore setting of write bits on Install'd filesMats Wichmann2021-04-182-27/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SCons had undocumented behavior that Install and InstallVersionedLib unconditionally changed the files they copied to writable - shutil.copy2(), the underlying function used for copying, preserves mode bits. Restore this behavior so Install won't fail in a project where it had previously run, if any of the sources were read-only. Fixes #3927 Signed-off-by: Mats Wichmann <mats@linux.com>
* | | | | | | | | Update generated docs. They were broken [skip appveyor][skip travis]William Deegan2021-04-181-5/+5
|/ / / / / / / /
* | | | | | | | Test tweaks to help testing on mingw-only win32 systemsMats Wichmann2021-04-142-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On a system where SCons is started from the mingw bash shell, and mingw Python is the interpreter, the secondary self-identification differs. Use that in a few tests which otherwise make the wrong decision. EnvironmentTests used an invalid value for CCFLAGS, and empty string is a better choice. Change a couple of cases where Python code was run directly so it's prefixed by the-Python-in-use, which fails if there is not a Windows-registered program for .py files - we didn't really want to use the Windows-native Python anyway. Signed-off-by: Mats Wichmann <mats@linux.com>
* | | | | | | | Merge pull request #3926 from mwichmann/defines-expandWilliam Deegan2021-04-121-11/+11
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | Expansion of CPPDEFINES now substs consvars
| * | | | | | | | Expansion of CPPDEFINES now substs consvarsMats Wichmann2021-04-101-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By calling env.subst_list instead of env.subst_path, the processed defines can have construction vars interpolated. Note issue of SOURCE and TARGET not being expanded, as they're special and are not passed to the relevant function, remains open (issue 3477). Fixes #2363 Signed-off-by: Mats Wichmann <mats@linux.com>
* | | | | | | | | Merge pull request #3925 from bdbaddog/add_experimental_optionWilliam Deegan2021-04-122-13/+67
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | Add --experimental option
| * | | | | | | | | address sider issueWilliam Deegan2021-04-121-1/+1
| | | | | | | | | |
| * | | | | | | | | better handle all/none and multiple options, expanded tests to cover suchWilliam Deegan2021-04-121-4/+29
| | | | | | | | | |
| * | | | | | | | | Address mwichmann's feedbackWilliam Deegan2021-04-101-4/+4
| | | | | | | | | |
| * | | | | | | | | address mwichmann's review commentWilliam Deegan2021-04-101-1/+1
| | | | | | | | | |
| * | | | | | | | | Add docs for --experimental switchWilliam Deegan2021-04-092-12/+41
| |/ / / / / / / /
* | | | | | | | | Merge pull request #2 from bdbaddog/platformio_TEMPFILEARGESCFUNCIvan Kravets2021-04-121-2/+3
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | Fix failing tests, restore last ditch default setting in TempFileMunge for TEMPFILEARGESCFUNC
| * | | | | | | | | Fix a missed bracketIvan Kravets2021-04-121-2/+2
| | | | | | | | | |
| * | | | | | | | | Fix failing tests, restore last ditch default setting in TempFileMunge for ↵William Deegan2021-04-121-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TEMPFILEARGESCFUNC
* | | | | | | | | | Merge branch 'master' of https://github.com/SCons/sconsIvan Kravets2021-04-126-23/+108
|\ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / |/| / / / / / / / / | |/ / / / / / / /
| * | | | | | | | Merge branch 'master' into multitarget_progressDaniel Moody2021-04-095-22/+105
| |\ \ \ \ \ \ \ \
| | * \ \ \ \ \ \ \ Merge pull request #3894 from dmoody256/support_custom_cachedir_classesWilliam Deegan2021-04-095-22/+105
| | |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | Support custom cachedir classes
| | | * | | | | | | | switched back to just type checking the cachedir instead of avoiding linter ↵Daniel Moody2021-04-071-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | rules.
| | | * | | | | | | | fix sider issuesDaniel Moody2021-04-051-1/+2
| | | | | | | | | | |
| | | * | | | | | | | improved DoubleCacheDir test, added extra cachedir validation check.Daniel Moody2021-04-051-6/+15
| | | | | | | | | | |
| | | * | | | | | | | fixed sider issuesDaniel Moody2021-04-022-1/+2
| | | | | | | | | | |
| | | * | | | | | | | merged latest master with CacheDir changes.Daniel Moody2021-04-011-1/+2
| | | | | | | | | | |
| | | * | | | | | | | Added reinstantiatng custom cachedirDaniel Moody2021-04-011-3/+2
| | | | | | | | | | |