Skip to main content

scons-tool-loader

PyPi package version Documentation Status https://travis-ci.org/ptomulik/scons-tool-loader.svg?branch=master https://ci.appveyor.com/api/projects/status/github/ptomulik/scons-tool-loader?svg=true https://coveralls.io/repos/github/ptomulik/scons-tool-loader/badge.svg?branch=master Maintainability

A little python package that helps loading externally managed SCons tools.

Installation

To install module from pypi, type

pip install scons-tool-loader

or, if your project uses pipenv:

pipenv install --dev scons-tool-loader

Alternativelly, you may add this to your Pipfile

[dev-packages]
scons-tool-loader = "*"

This will install a namespaced package sconstool.loader in project’s virtual environment.

Usage examples

Using tools istalled into “standard” namespace

The “standard” namespace for pip-managed SCons tools is assumed to be sconstool namespace. In the following examples we assume that tools are installed as namespaced packages, under sconstool namespace. This is exactly how all the tools developed by the original author of the scons-tool-loader get installed.

For example, the following code

pip install scons-tool-clang

will install clang tool as sconstool.clang package. Once installed, it may be used in a SCons script by extending default toolpath and loading the tool to the construction environment

# SConstruct
import sconstool.loader
sconstool.loader.extend_toolpath()
env = Environment(tools=['default', 'sconstool.clang'])
env.Program('test.c')

If, for some reason, fully qualified package name can’t be used as the tool name, one may use “transparent” mode when extending toolpath

# SConstruct
import sconstool.loader
sconstool.loader.extend_toolpath(transparent=True)
env = Environment(tools=['default', 'clang'])
env.Program('test.c')

The above code will still load the sconstool.clang tool.

Using tools installed into “non-standard” namespaces

Suppose, some tools get installed into vendor namespace. For example, vendor.foo and vendor.bar are installed somewhere under sys.path. These tools may be made visible to scons by using namespace parameter, and scan.

# SConstruct
import sconstool.loader
sconstool.loader.extend_toolpath(namespace='vendor', scan=True)
env = Environment(tools=['default', 'sconstool.clang', 'vendor.foo', 'vendor.bar'])
# ...

More documentation

See the online documentation.

LICENSE

Copyright (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

Metadata

Release files for scons-tool-loader 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scons-tool-loader 0.2.0
File Size Uploaded Provenance
scons-tool-loader-0.2.0.tar.gz 5.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for scons-tool-loader 0.2.0
File Interpreter ABI Platform
scons_tool_loader-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.8 kB

Release files / scons-tool-loader-0.2.0.tar.gz

Download URL scons-tool-loader-0.2.0.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f0dc13e9b57054e1a48f864a0955ed399270722c013531dde1af925205aa5216
BLAKE2b-256 checksum
How to use checksums
55e4e2467a0163de64f82af65b92acc996ec9d5d3f98228c31b6446938ce345e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

Release files / scons_tool_loader-0.2.0-py3-none-any.whl

Download URL scons_tool_loader-0.2.0-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f5fa397c19f26129d7ab700f07f8378bd51d2bb75d6187fe45732b000fd8cbbe
BLAKE2b-256 checksum
How to use checksums
a20a98df98b558467d7c69c4d0c4a7f1a0fcf66d63cec47765050cfa52cd6756
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

Security for scons-tool-loader 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page