colcon / colcon-core

Command line tool to build sets of software packages
http://colcon.readthedocs.io
Apache License 2.0
103 stars 46 forks source link

Use sysconfig directly to determine python lib dir #483

Closed cottsay closed 2 years ago

cottsay commented 2 years ago

The distutils package is deprecated and will be removed in Python 3.12. We can achieve the same behavior using sysconfig directly.

codecov[bot] commented 2 years ago

Codecov Report

Merging #483 (a01f7d3) into master (ae8cf1b) will increase coverage by 0.18%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #483      +/-   ##
==========================================
+ Coverage   80.81%   81.00%   +0.18%     
==========================================
  Files          59       59              
  Lines        3519     3553      +34     
  Branches      668      682      +14     
==========================================
+ Hits         2844     2878      +34     
+ Misses        630      629       -1     
- Partials       45       46       +1     
Impacted Files Coverage Δ
colcon_core/environment/pythonpath.py 100.00% <100.00%> (ø)
colcon_core/task/python/build.py 35.82% <100.00%> (-0.68%) :arrow_down:
colcon_core/task/__init__.py 100.00% <0.00%> (ø)
colcon_core/verb/__init__.py 100.00% <0.00%> (ø)
colcon_core/executor/__init__.py 100.00% <0.00%> (ø)
colcon_core/environment/__init__.py 100.00% <0.00%> (ø)
colcon_core/prefix_path/__init__.py 100.00% <0.00%> (ø)
colcon_core/argument_parser/__init__.py 100.00% <0.00%> (ø)
colcon_core/package_discovery/__init__.py 100.00% <0.00%> (ø)
... and 8 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update ae8cf1b...a01f7d3. Read the comment docs.