Package: scons-tool-archives
SConstool to create archives.InstallationThere are few ways to install this tool for your project.FrompypiThis method may be preferable if you build your project under a virtualenv. To
add archives tool frompypi, type (within your wirtualenv):pipinstallscons-tool-loaderscons-tool-archivesor, if your project usespipenv:pipenvinstall--devscons-tool-loaderscons-tool-archivesAlternatively, you may add this to yourPipfile[dev-packages]
scons-tool-loader = "*"
scons-tool-archives = "*"The tool will be installed as a namespaced packagesconstool.archivesin project’s virtual environment. You may further usescons-tool-loaderto load the tool.As a git submoduleCreate new git repository:mkdir/tmp/prj&&cd/tmp/prjtouchREADME.rstgitinitAdd thescons-tool-archivesas a submodule:gitsubmoduleaddgit://github.com/ptomulik/scons-tool-archives.gitsite_scons/site_tools/archivesFor python 2.x create__init__.pyinsite_toolsdirectory:touchsite_scons/site_tools/__init__.pythis will allow to directly importsite_tools.archives(this may be required by other tools).Usage exampleA simpleSConstructwhich creates tar archive namedfoo.tarcontainning
two files:foo.candfoo.h.# TODO: uncomment following lines if the tool is installed via pip/pipenv# import sconstool.loader# sconstool.loader.extend_toolpath(transparent=True)env=Environment(tools=['archives'])env.TarFile('foo.tar',['foo.c','foo.h'])DetailsModule descriptionThescons-tool-archivestool provides builders to create archives, such as tar
or zip files. Currently two builders are implementedTarFile- usesPython tarfilelibrary to create tar archives,ZipFile- usesPython zipfilelibrary to create zip archives.Construction variablesThere are several construction variables used by the builders. Variables
with names starting withTARFILEare used by theTarFilebuilder,
variables starting withZIPFILEare used by theZipFilebuilder.VariableDefaultTARFILESUFFIX.tarTARFILETRANSFORMTARFILEMAPPINGSTARFILEMODETARFILEBUFSIZETARFILECOMPRESSLEVELTARFILEFORMATTARFILEDEREFERENCETARFILEDEBUGTARFILEENCODINGTARFILEERRORSZIPFILESUFFIX.zipZIPFILETRANSFORMZIPFILEMAPPINGSZIPFILEMODEZIPFILECOMPRESSIONZIPFILEALLOW64ZIPFILECOMPRESSLEVELLICENSECopyright (c) 2018-2020 by Paweł Tomulik <ptomulik@meil.pw.edu.pl>Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the “Software”), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE