-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Esteve Fernandez <[email protected]>
- Loading branch information
Showing
10 changed files
with
221 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
cargo-ament-build (0.1.9-100) focal jammy noble bookworm trixie; urgency=low | ||
|
||
* source package automatically created by stdeb 0.10.1 | ||
|
||
-- None <None> Sun, 08 Dec 2024 17:51:16 +0100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Source: cargo-ament-build | ||
Maintainer: Esteve Fernandez <[email protected]> | ||
Section: python | ||
Priority: optional | ||
Build-Depends: dh-python, python3-setuptools, python3-setuptools-rust, python3-all-dev, debhelper (>= 9) | ||
Standards-Version: 3.9.1 | ||
Homepage: None | ||
X-Python3-Version: >= 3.6 | ||
|
||
Package: python3-cargo-ament-build | ||
Architecture: any | ||
Depends: ${misc:Depends}, ${python3:Depends}, ${shlibs:Depends} | ||
Description: Cargo plugin for use with colcon workspaces | ||
Cargo plugin for use with colcon workspaces | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/usr/bin/make -f | ||
|
||
# This file was automatically generated by stdeb 0.10.1 at | ||
# Sun, 08 Dec 2024 17:51:16 +0100 | ||
|
||
%: | ||
dh $@ --with python3 --buildsystem=python_distutils | ||
|
||
override_dh_auto_clean: | ||
python3 setup.py clean -a | ||
find . -name \*.pyc -exec rm {} \; | ||
|
||
override_dh_auto_build: | ||
python3 setup.py build --force | ||
|
||
override_dh_auto_install: | ||
python3 setup.py install --force --root=debian/python3-cargo-ament-build --no-compile -O0 --install-layout=deb --prefix=/usr | ||
|
||
override_dh_python2: | ||
dh_python2 --no-guessing-versions | ||
|
||
override_dh_strip: | ||
dh_strip --no-automatic-dbgsym |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.0 (quilt) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
extend-diff-ignore="\.egg-info$" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import os | ||
import shlex | ||
|
||
try: | ||
import tomllib | ||
except ModuleNotFoundError: | ||
import tomli as tomllib | ||
from setuptools import setup | ||
|
||
from setuptools_rust import RustBin | ||
|
||
# Force the wheel to be platform specific | ||
# https://stackoverflow.com/a/45150383/3549270 | ||
# There's also the much more concise solution in | ||
# https://stackoverflow.com/a/53463910/3549270, | ||
# but that would require python-dev | ||
try: | ||
# noinspection PyPackageRequirements,PyUnresolvedReferences | ||
from wheel.bdist_wheel import bdist_wheel as _bdist_wheel | ||
|
||
# noinspection PyPep8Naming,PyAttributeOutsideInit | ||
class bdist_wheel(_bdist_wheel): | ||
def finalize_options(self): | ||
_bdist_wheel.finalize_options(self) | ||
self.root_is_pure = False | ||
|
||
except ImportError: | ||
bdist_wheel = None | ||
|
||
with open("Cargo.toml", "rb") as fp: | ||
cargo_data = tomllib.load(fp) | ||
version = cargo_data["package"]["version"] | ||
description = cargo_data["package"]["description"] | ||
|
||
# Use `--no-default-features` by default for a minimal build to support PEP 517. | ||
# `MATURIN_SETUP_ARGS` env var can be used to pass customized arguments to cargo. | ||
cargo_args = ["--no-default-features"] | ||
long_description = description | ||
|
||
setup( | ||
version=version, | ||
cmdclass={"bdist_wheel": bdist_wheel}, | ||
rust_extensions=[RustBin("cargo-ament-build", args=cargo_args, cargo_manifest_args=["--locked"])], | ||
zip_safe=False, | ||
description=description, | ||
long_description=long_description, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[cargo-ament-build] | ||
No-Python2: | ||
Build-Depends: python3-setuptools-rust | ||
Suite: focal jammy noble bookworm trixie | ||
X-Python3-Version: >= 3.6 | ||
Debian-Version: 100 |