New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
conan: init at 0.21.2 #24865
conan: init at 0.21.2 #24865
Conversation
- tested on darwin - tested on nixos
Thanks! |
(Edited) Builds on x86_64, but doesn't on i686 due to a cached failure. The linked reproduce script builds fine, probably because I'm on 64 bit. More specifically, it's because the transitive dependency So I'm not sure what should be done further:
running install tests
............s..................................ssssssssss........s........................................................................s.....................................sssssssssssssssss.........sss.s...............................ss....s....................................s...............s..sss/tmp/nix-build-python2.7-astroid-1.4.9.drv-0/astroid-1.4.9/astroid/tests/test_unittest_protocols.py:165: PendingDeprecationWarning: locals is deprecated and will be removed in astroid 2.0, use the function 'get_locals()' instead.
node.root().locals['__all__'] = [node.value]
........ss....ssssss...........sss.F/tmp/nix-build-python2.7-astroid-1.4.9.drv-0/astroid-1.4.9/astroid/tests/test_unittest_utils.py:59: PendingDeprecationWarning: locals is deprecated and will be removed in astroid 2.0, use the function 'get_locals()' instead.
a1 = module.locals['a'][0]
/tmp/nix-build-python2.7-astroid-1.4.9.drv-0/astroid-1.4.9/astroid/tests/test_unittest_utils.py:60: PendingDeprecationWarning: locals is deprecated and will be removed in astroid 2.0, use the function 'get_locals()' instead.
a2 = module.locals['a'][1]
/tmp/nix-build-python2.7-astroid-1.4.9.drv-0/astroid-1.4.9/astroid/tests/test_unittest_utils.py:61: PendingDeprecationWarning: locals is deprecated and will be removed in astroid 2.0, use the function 'get_locals()' instead.
a3 = module.locals['a'][2]
/tmp/nix-build-python2.7-astroid-1.4.9.drv-0/astroid-1.4.9/astroid/tests/test_unittest_utils.py:62: PendingDeprecationWarning: locals is deprecated and will be removed in astroid 2.0, use the function 'get_locals()' instead.
a4 = module.locals['a'][3]
/tmp/nix-build-python2.7-astroid-1.4.9.drv-0/astroid-1.4.9/astroid/tests/test_unittest_utils.py:63: PendingDeprecationWarning: locals is deprecated and will be removed in astroid 2.0, use the function 'get_locals()' instead.
a5 = module.locals['a'][4]
/tmp/nix-build-python2.7-astroid-1.4.9.drv-0/astroid-1.4.9/astroid/tests/test_unittest_utils.py:64: PendingDeprecationWarning: locals is deprecated and will be removed in astroid 2.0, use the function 'get_locals()' instead.
a6 = module.locals['a'][5]
./tmp/nix-build-python2.7-astroid-1.4.9.drv-0/astroid-1.4.9/astroid/tests/test_unittest_utils.py:39: PendingDeprecationWarning: locals is deprecated and will be removed in astroid 2.0, use the function 'get_locals()' instead.
xass1 = module.locals['x'][0]
./tmp/nix-build-python2.7-astroid-1.4.9.drv-0/astroid-1.4.9/astroid/tests/test_unittest_utils.py:87: PendingDeprecationWarning: locals is deprecated and will be removed in astroid 2.0, use the function 'get_locals()' instead.
f1 = module.locals['exclusive_func2'][0]
/tmp/nix-build-python2.7-astroid-1.4.9.drv-0/astroid-1.4.9/astroid/tests/test_unittest_utils.py:88: PendingDeprecationWarning: locals is deprecated and will be removed in astroid 2.0, use the function 'get_locals()' instead.
f2 = module.locals['exclusive_func2'][1]
/tmp/nix-build-python2.7-astroid-1.4.9.drv-0/astroid-1.4.9/astroid/tests/test_unittest_utils.py:89: PendingDeprecationWarning: locals is deprecated and will be removed in astroid 2.0, use the function 'get_locals()' instead.
f3 = module.locals['exclusive_func2'][2]
/tmp/nix-build-python2.7-astroid-1.4.9.drv-0/astroid-1.4.9/astroid/tests/test_unittest_utils.py:90: PendingDeprecationWarning: locals is deprecated and will be removed in astroid 2.0, use the function 'get_locals()' instead.
f4 = module.locals['exclusive_func2'][3]
...............................................
======================================================================
FAIL: test_from_imports (astroid.tests.test_unittest_brain.SixBrainTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/nix-build-python2.7-astroid-1.4.9.drv-0/astroid-1.4.9/astroid/tests/test_unittest_brain.py", line 276, in test_from_imports
self.assertIsInstance(inferred, nodes.ClassDef)
AssertionError: YES is not an instance of <class 'astroid.scoped_nodes.ClassDef'>
----------------------------------------------------------------------
Ran 388 tests in 4.300s
FAILED (failures=1, skipped=53)
builder for ‘/nix/store/s1rj91jaxj45968scl6whxijdpf3f1sd-python2.7-astroid-1.4.9.drv’ failed with exit code 1 |
Motivation for this change
Conan is a cross-platform package manager for C/C++.
@igsha has already laid out most of the work for this change (see his conan branch). It was just missing a little bit, so here it goes 👍
Additionally this PR includes a commit from still unmerged PR #24131, since
conan
also depends onpythonPackages.distro
that is initialized there.Things done
build-use-sandbox
innix.conf
on non-NixOS)nix.useChroot
so I hope I have tested it with command belownix-build . --option build-use-chroot true -A conan
)nix-shell -I nixpkgs=. --pure -p conan
)nix-shell -p nox --run "nox-review wip"
node-semver
has a test error (reported in Error while testing build of 0.1.1 podhmo/python-node-semver#4), but still builds fine and dependent application conan runs./result/bin/
)gcc
,gnumake
andcmake
to build the tutorial, but they are not runtime dependencies