summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons/Scanner
Commit message (Collapse)AuthorAgeFilesLines
* Post merge commit for safety. Building Fortran code works, but tests fail.Russel Winder2015-12-2410-33/+119
|\
| * removed several pre-2.7 methods and imports, including some basic refactoringsDirk Baechle2015-12-103-3/+3
| |
| * Issue 2264: Added cross-language scanner support.William Blevins2015-05-171-0/+45
| |
| * - switching Node class and NodeInfo/Binfo to using slotsDirk Baechle2015-02-264-19/+22
| | | | | | | | - memoizer subsystem now uses decorators instead of the metaclass approach
| * Add comment for a case where LIBS (or part of it) is an objectAlexey Klimkin2015-01-271-0/+1
| |
| * Improve readability of LIB substitution codeAlexey Klimkin2015-01-202-16/+17
| |
| * Fix incomplete LIBS flattening and substitution in Program scannerAlexey Klimkin2015-01-142-3/+39
| |
* | Merged with [default]Stefan Zimmermann2014-03-319-39/+32
|\ \ | |/
| * Switch unit tests to configurable runneranatoly techtonik2014-03-218-37/+30
| |
| * - added doc editor configuration for XXE5Dirk Baechle2014-01-191-2/+2
| | | | | | | | | | - added missing icons for XXE4 - adapted schema location, such that the validation works properly in SernaFree and XXE
* | More __cmp__ to __eq__ (and __lt__). Resolved some UnboundLocalErrors after ↵Stefan Zimmermann2014-03-312-4/+4
| | | | | | | | except.
* | Made former 2to3 changes Python 2.7 compatible (or removed unneeded changes).Stefan Zimmermann2014-03-316-11/+8
| |
* | fix for cpp scanner (maybe)ndbecker22013-09-091-1/+2
| | | | | | | | (transplanted from c68b1a5da5ad47befc3a7e802d8ae23372f0e1a8)
* | Manual python3 post-2to3 fixes from Neal BeckerGary Oberbrunner2013-09-221-1/+1
| |
* | Result of raw 2to3 run (2to3-2.7); checkpoint for python3 conversion.Gary Oberbrunner2013-09-227-10/+13
|/
* - switched to different schemaLocation URIDirk Baechle2013-05-031-1/+1
|
* - rewrote all tool/builder docs to new SCons XSDDirk Baechle2013-05-031-2/+29
|
* Add support for the biblatex package; search for new keywards to get side ↵Robert Managan2012-06-141-1/+4
| | | | effects and dependencies right
* Handle DOS line endings in RC scanner. Fixes #2747.Gary Oberbrunner2011-05-302-1/+12
|
* I had to add the INDEXSTYLES environment variable to the codeRobert Managan2010-08-231-0/+3
| | | | | | | | | so the user can define a path to look for makeindex style files. When the latex files are generated by another builder the user may have to define env['TEXINPUTS'] or some of the other environment variables so latex can find files that are not sideeffects. This woul dinclude style files and the like.
* Move the authoritative source for functions from the man page to variousSteven Knight2010-07-211-0/+64
| | | | | | .xml files (some new, some updated) next to the modules that implement them. Generate the man page using the output generated from the .xml file by bin/scons-proc.py.
* cleanup .cvsignore garbageAnatoly Techtonik2010-07-051-1/+0
|
* Fix #2574: case sensitivity issue with Fortran module scanner.Gary Oberbrunner2010-06-171-3/+3
|
* Merged revisions 4727-4729,4731-4938,4940-5028 via svnmerge fromSteven Knight2010-06-151-3/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | http://scons.tigris.org/svn/scons/branches/pending ........ r4942 | stevenknight | 2010-06-03 12:41:20 -0700 (Thu, 03 Jun 2010) | 13 lines Isseu 2641: Latest drop of the TestCmd infrastructure, v. 1.3, including: * Support for test timeouts. * Ability to set separate match_stdout and match_stderr functions. * Ability to set separate diff_stdout and diff_stderr functions. * Static methods for the various underlying match* and diff* functionality. * Ability to get at the various match* and diff* functions by attribute name. * Got rid of checks for difflib now that Python 2.3 is the floor (for this infrastructure, anyway). Ripple effects in two test scripts. Added upstream unit test modules (QMTest/Test{Cmd,Common}Tests.py). Added a README.txt file. ........ r4943 | stevenknight | 2010-06-03 13:00:31 -0700 (Thu, 03 Jun 2010) | 2 lines Grab the correct TestCmd files with the updated version number. ........ r4946 | managan | 2010-06-04 09:39:20 -0700 (Fri, 04 Jun 2010) | 4 lines On Windows add a '/D' to the command line so it recognizes drive letters in the source or target file paths ........ r4947 | managan | 2010-06-04 09:51:48 -0700 (Fri, 04 Jun 2010) | 5 lines The scanner was not parsing the dependencies in \includegraphics commands when there was whitespace (including carriage returns) in the command. While we need a better long term fix this covers this concern. ........ r4948 | managan | 2010-06-04 11:13:12 -0700 (Fri, 04 Jun 2010) | 3 lines Dropped an import line that is needed by the last commit of mine for Windows depenedant option on latex command lines ........ r4949 | managan | 2010-06-04 12:27:48 -0700 (Fri, 04 Jun 2010) | 7 lines Some latex packages break up commands where you normally could not by using a comment character at the end of the first line. Our current scanner broke on this and lost some dependecies. While we need general fix, this patch solves this problem ........ r4950 | managan | 2010-06-04 15:51:36 -0700 (Fri, 04 Jun 2010) | 5 lines Tweak how we handle comments within Latex source files when scanning and looking for dependencies. We were adding a space when a comment broke a line and we should not have. ........ r4984 | managan | 2010-06-07 09:37:40 -0700 (Mon, 07 Jun 2010) | 6 lines The multi-line_include-options test failed to check for the existence of latex. Added that so this test is skipped on systems without latex. ........
* Convert old-style classes in Scanner/*.py modules to new-style classes.Steven Knight2010-05-162-4/+4
| | | | Ripple effect to fix monkey-patching in test/Scanner/generated.py.
* Convert old-style classes in Scanner/LaTeX.py to new-style classes.Steven Knight2010-05-151-4/+4
|
* Convert old-style utility classes in unit test files (*Tests.py)Steven Knight2010-05-126-14/+14
| | | | to new-style classes.
* http://scons.tigris.org/issues/show_bug.cgi?id=2345Greg Noel2010-04-244-33/+8
| | | | | | | Comb out all code that supported earlier versions of Python. Most such code is in snippets of only a few lines and can be identified by having a Python version string in it. Such snippets add up; this combing pass probably got rid of over 500 lines of code.
* http://scons.tigris.org/issues/show_bug.cgi?id=2317Greg Noel2010-04-234-5/+5
| | | | | | Apply the refactorings from the 'dict' fixer, less occurrences that were manually audited to be safe. Also pick up changes in bin/sfsum, a Python file that was not being scanned before.
* http://scons.tigris.org/issues/show_bug.cgi?id=2345Greg Noel2010-04-152-2/+2
| | | | | | Apply the first part of the 'raise' fixer (the three-argument cases are not converted and will need to wait until native support of with_traceback() is available).
* Add compat "collections" module for pre-2.4 Python verseions. For now.Steven Knight2010-04-113-0/+6
|
* Issue 2334: Use compatibility versions of collections.User{Dict,List,String}Steven Knight2010-04-074-15/+13
| | | | | instead of the deprecated User{Dict,List,String} modules. The two test scripts that use User{List,String} fall back on ImportError by hand.
* http://scons.tigris.org/issues/show_bug.cgi?id=2329Greg Noel2010-03-2712-32/+19
| | | | | | | | | | | | | | | Applied a number of idiomatic changes. Uses of the 'sort()' method were converted into calls of 'sorted()' when possible and the sorted() expression was inserted into a subsequent statement whenever that made sense. The statement 'while 1:' was changed to 'while True:'. Names from the 'types' module (e.g., 'types.FooType') were converted to the equivalent build-in type (e.g., 'foo'). Comparisons between types were changed to use 'isinstance()'.
* Move 2.0 changes collected in branches/pending back to trunk for furtherGreg Noel2010-03-2515-87/+81
| | | | | development. Note that this set of changes is NOT backward-compatible; the trunk no longer works with Python 1.5.2, 2.0, or 2.1.
* Merged revisions 4645,4647-4651,4654-4656 via svnmerge fromSteven Knight2010-02-051-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | http://scons.tigris.org/svn/scons/branches/pending ........ r4648 | managan | 2010-01-22 09:40:52 -0800 (Fri, 22 Jan 2010) | 9 lines Added dismbiguate calls on a targets side effects in the make_ready_all and make_ready_current routines of Taskmaster.py. This fixes Stefan Hepp's problem with latex. Directories to hold the side effect files were not created when using variantDir with duplicate=0 Modifying subdir_variantdir_include2.py to run scons with an explicit target to reveal this problem. ........ r4654 | stevenknight | 2010-01-27 07:41:01 -0800 (Wed, 27 Jan 2010) | 5 lines Issue 2534: fix Scanners' default ability to return Dir nodes by making the default node_class the real SCons.Node.FS.Base class, not SCons.Node.FS.Entry (which is now, and has been for some time, a subclass). ........
* Python 1.5 fix (no continue within a try:-except: block within a loop).Steven Knight2010-01-091-2/+10
|
* Change scanner to properly search for included file from theRobert Managan2010-01-041-5/+30
| | | | | | | | directory of the main file instead of the file it is included from. Also update the emitter to add the .aux file associated with \include{filename} commands. This makes sure the required directories if any are created for variantdir cases. Half of the patch from Stefan Hepp.
* Add scanning of files included in Latex by means of \lstinputlisting{}Robert Managan2009-12-171-2/+4
| | | | Patch from Stefan Hepp.
* Issue 2415: Tolerate unicode strings when using intern()Ludwig Hähne2009-05-171-10/+2
|
* Issue 2401: Fix usage of comparison with None, patch from Jared GrubbGreg Noel2009-05-031-1/+1
|
* Issue 2360: fix a TypeError from attempts to intern() unicode objectsSteven Knight2009-03-022-1/+18
| | | | returned to the ClassicCPPScanner.
* Issue 2181: intern file-names to save memoryLudwig Hähne2009-02-091-2/+7
|
* Add emacs and vim editing settings to the bottom of *.py files.Steven Knight2009-02-0917-0/+102
|
* Remove the feature that would build .pdf graphics filesRobert Managan2009-01-091-0/+3
| | | | | | | | | | | | | | | | | | from .eps files for the pdf latex builder That is if the .tex file has "\includegraphics{figure1}" and the file figure1.eps then when using the .DVI builder latex will find the file and all is fine. However, when using the .PDF builder pdflatex can not process .eps files and will fail. After this patch the user will need to add env.PDF('figure1.eps') Update two tests that used the old feature and would fail otherwise I could not come up with a way to test for a feature that is removed. That is, I can write a test that works before the update and fails after but not the other way around.
* Issue 2255: Handle scanning of UTF-8 and UTF-16 files. (Greg Spencer)Steven Knight2008-12-125-6/+8
|
* Python 1.5 and 2.1 compatibility: string methods, nested scopes.Steven Knight2008-11-121-3/+6
|
* test/TEX/PDF_single_source.pyRobert Managan2008-10-071-7/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test of generating several .pdfs from a list of .ps (new single_source setting) test/TEX/LATEX2.py Based on second half of LATEX. generate all .pdf's at once by giving a list of .tex files test of single_source src/engine/SCons/Scanner/LaTeX.py Add test of changing an included file. Add test of included file having no extension src/engine/SCons/Scanner/LaTeX.py Add lists of acceptable graphics extensions, In the furture make this user configurable?? Scan for files in the paths stored in env['TEXINPUTS'] and env['ENV']['TEXINPUTS'] for people who may just input their environment... Add function findENVPatDirs for this purpose src/engine/SCons/Tool/pdf.py add epstopdf action Have to add it after the pdftex action so it is not the default. Make builder single_source since each input produces one output src/engine/SCons/Tool/pdftex.py use tex_eps_emitter call pdf.generate2 to add epstopdf action after the PDFLaTeXAction src/engine/SCons/Tool/dvipdf.py simplify coding that adds the source directory to the search path TEXPICTS src/engine/SCons/Tool/dvips.py Add single_source option since each ps file comes from one dvi file src/engine/SCons/Tool/pdflatex.py add .tex as a valid extension and switch emitters to tex_pdf_emitter src/engine/SCons/Tool/tex.py fix regular expressions ^[^%]* to ^[^%\n]* for multiline environment add REs for \input or \include and \includegraphics get graphics extensions from Scanner.LaTeX so they are defined in one place move modify_env_var to Scanner.LaTeX since it is used there and easier to import it here add FindFile routine to find a file given name, list of suffixes, paths, env returns a node for the file. add tex_eps_emitter and tex_pdf_emitter that call a core routine with a different list of graphics extensions that can be handled by the tool used (latex vs. pdflatex) revamp feature test/suffix list into two lists and build the list used to create sideeffects for each input file... These tests now get applied to each included file so the whole source tree is tested. Get list of paths from env['ENV']['TEXINPUTS'] and env['TEXINPUTS'] if find we need a .pdf file and only have .eps or .ps set up the .pdf as a target with the .eps as source... change emitter to tex_eps_emitter src/engine/SCons/Tool/latex.py add .tex as a valid extension and switch emitters to tex_eps_emitter
* Fix the regular expression for LaTeX scanning so that it matchesSteven Knight2008-10-012-2/+12
| | | | \include (and other inclusion strings) after blank lines.
* This patch removes setting the variable TEXPICTS in the tex tools andRobert Managan2008-09-301-3/+3
| | | | | | | | | | | | | | sets it in tee dvi2ps and dvipdf tools where it is needed. This means that we can reset it to the original value at the end of the tool. This is done by storing the .tex source file's path in the .dvi file's Node .attribute slot and retrieving it in the dvi2ps and dvipdf tools from the source. I also updated the list of graphics extensions in the Latex scanner I set up one function that gets called to run either dvi2ps or dvipdf after setting TEXPICTS.
* Fixed an issue with the way the test was setting up the CPPPATH.William Deegan2008-09-261-4/+4
| | | | | | | Was causing buildbot failure on centos5 buildbot. Turns out some weird interaction with the bogus code which is replaced below was only happening when setuptools was installed in the python tree being used for tests.