Giter VIP home page Giter VIP logo

colcon-common-extensions's Introduction

colcon-common-extensions

A meta package aggregating colcon-core as well as a set of common extensions.

colcon-common-extensions's People

Contributors

cottsay avatar dirk-thomas avatar nuclearsandwich avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

colcon-common-extensions's Issues

Release to PyPI

Hello @dirk-thomas, could you please grant me (or someone else) the necessary privileges to release this package to PyPI?

error: No module named '_pytest' after following install instructions

(reporting this here as I installed colcon-common-extensions)

ubuntu:xenial Docker container. Followed installation instructions with a python3 venv.

This installed most of the things I'd expect, but upon first time invoking colcon --help, I got:

ERROR:colcon.colcon_core.entry_point:Exception loading extension 'colcon_core.python_testing.pytest': No module named '_pytest'
Traceback (most recent call last):
  File "/catkin_ws/colcon_venv/lib/python3.5/site-packages/colcon_core/entry_point.py", line 86, in load_entry_points
    extension_type = load_entry_point(entry_point)
  File "/catkin_ws/colcon_venv/lib/python3.5/site-packages/colcon_core/entry_point.py", line 128, in load_entry_point
    return entry_point.load()
  File "/catkin_ws/colcon_venv/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2229, in load
    return self.resolve()
  File "/catkin_ws/colcon_venv/lib/python3.5/site-packages/pkg_resources/__init__.py", line 2235, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/catkin_ws/colcon_venv/lib/python3.5/site-packages/colcon_core/task/python/test/pytest.py", line 7, in <module>
    from _pytest.main import EXIT_NOTESTSCOLLECTED
ImportError: No module named '_pytest'

usage: colcon [-h] [--log-level LOG_LEVEL]
              {build,extension-points,extensions,info,list,metadata,test,test-result}
              ...
...

After manually installing pytest in the virtualenv, this error disappeared.

Pinned versions

It would be great if tagged releases of colcon-common-extensions (pypi and/or deb) had pinned versions of colcon components, so it would be possible to install a consistent 'older' version of colcon.

[solved] Source install on 18.04

For simplicity of CI config reasons I'd like to use colcon in the same way on 18.04 as I am on 20.04. I've been trying to use the pip based source install but it seems that it is missing some features (specifically the mixin verb and argument to build). I'm not sure what I'm doing wrong.

Note that I first tried using colcon via the debian packages and it is missing the mixin feature there too.

I discovered there is a package python3-colcon-mixin that I needed. However, now after trying to update mixin I don't have any available (colcon mixin list shows nothing).

$ colcon mixin show build
Passed verb name 'build' has no mixins

In case anyone else finds this in the future this is what I needed to do:

sudo apt install python3-colcon-mixin
colcon mixin add default https://raw.githubusercontent.com/colcon/colcon-mixin-repository/master/index.yaml
colcon mixin update default

colcon extension for meson

I created a colcon extension for meson packages: https://github.com/christianrauch/colcon-meson and would like to have this moved inside the @colcon organisation for continued maintenance and releases to the Python Package Index.

This currently implements the bare minimum to identify, build and install meson packages.

To test it, build the libcamera and simple-cam packages.

# download colcon-meson and meson examples
mkdir -p ~/cam_ws/src
cd ~/cam_ws/src
git clone https://github.com/christianrauch/colcon-meson.git
git clone https://git.libcamera.org/libcamera/libcamera.git
git clone https://git.libcamera.org/libcamera/simple-cam.git
cd ~/cam_ws

# build colcon-meson
colcon build

# list packages
source install/setup.bash
colcon list
# should list:
#   colcon-meson	colcon-meson	(python)
#   libcamera	libcamera	(meson)
#   simple-cam	simple-cam	(meson)

# build 'libcamera' and 'simple-cam'
colcon build

# source workspace again and run the camera example
source install/setup.bash
qcam

@nuclearsandwich FYI. We had a quick chat about adding meson support a while ago. This should get this started.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.