summaryrefslogtreecommitdiff
path: root/support/lib
AgeCommit message (Collapse)AuthorFilesLines
2015-10-02Fixed asymptote export.Michael Schwarz1-1/+6
stdout was not being redirected into a pipe.
2015-09-16Abstraction which allows a running process to be used as a context manager.Michael Schwarz1-1/+16
2015-09-16Separate module for make file stuff.Michael Schwarz1-0/+5
2015-09-16Wrap all Python main functions with decorator.Michael Schwarz1-1/+22
This decorator check if a module was called as the main module and catches exceptions.
2015-09-16Check for Asymptote not writing a PDF file.Michael Schwarz1-2/+2
If no drawing commands are called in an Asymptote script, no PDF output is created and no error is generated. This confuses the build process, which expect a target to exist after its commands were called. With this change, the Python wrapper checks whether a PDF was actually written and throws an error otherwise.
2015-09-16Prevent Python stack trace when an external command failed.Michael Schwarz1-4/+8
This catches the OSError thrown by the subprocess module and wraps it so that in the end only an error message is printed, explaining which command failed.
2015-09-16New workaround for temp dir on different device.Michael Schwarz1-1/+20
Currently, on setups where the project dir is on a different file system as the system temporary directory, a temporary directory is instead created on the project dir. This is not very nice. With this change, we still create temporary files in the system temporary directory but copy instead of move files from and to the temporary directory, if necessary, which solves the problems.
2015-09-15Revert "support: Workaround for tempdir on different mount."Michael Schwarz1-13/+1
This reverts commit 3d21efd4897053e760ad7f4ce14a5482f66e858c.
2015-08-07Use Python script to run Asymptote.Michael Schwarz1-9/+8
2015-07-12support: Workaround for tempdir on different mount.Michael Schwarz1-1/+13
This adds a workaround for setups where the user has checked out the project on a different mount point than where the temporary directory is located.
2015-03-15Fix make jobserver warning.Michael Schwarz1-2/+11
When running the make file with a number of jobs, the following warning was generated by the make process used to parse the dependency makefile generated by OpenSCAD: make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule. With this change, the variables MAKELEVEL and MAKEFLAGS are removed from the environment before starting the child make process.
2014-12-21Rewritten unit conversion methods of inkex.py to properly handle viewport ↵Michael Schwarz1-1/+6
settings.
2014-12-12Added support for recording dependencies while compiling OpenSCAD files.Michael Schwarz1-1/+19
2014-12-10Extracted common functions to separate module.Michael Schwarz2-0/+18