D5446: rust-cpython: build and support for Python3

2018-12-18 Thread gracinet (Georges Racinet)
gracinet added a comment. @yuja great, thanks. Didn't know about this suffix, apparently it can be obtained through the `sysconfig` module (thats what `$PYTHON-config` does) ~ $ python2 -c "import sysconfig; print(sysconfig.get_config_var('SO'))" .so ~ $ python3 -c "impo

D5446: rust-cpython: build and support for Python3

2018-12-18 Thread gracinet (Georges Racinet)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG4277e20cfec4: rust-cpython: build and support for Python3 (authored by gracinet, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D5446?vs=12889&id=1

D5446: rust-cpython: build and support for Python3

2018-12-18 Thread yuja (Yuya Nishihara)
yuja added a comment. Queued, thanks. We'll probably need to add suffix to the filename to disambiguate py2/3 modules. It's `$PYTHON-config --extension-suffix` on my Linux machine, but I don't know if it can be obtained directly in setup.py. REPOSITORY rHG Mercurial REVISION DETAIL

Re: D5446: rust-cpython: build and support for Python3

2018-12-18 Thread Yuya Nishihara
Queued, thanks. We'll probably need to add suffix to the filename to disambiguate py2/3 modules. It's `$PYTHON-config --extension-suffix` on my Linux machine, but I don't know if it can be obtained directly in setup.py. ___ Mercurial-devel mailing list M

D5446: rust-cpython: build and support for Python3

2018-12-17 Thread gracinet (Georges Racinet)
gracinet created this revision. Herald added subscribers: mercurial-devel, mjpieters. Herald added a reviewer: hg-reviewers. REVISION SUMMARY Defined Cargo features for Python3, making them overall simpler to use, hooked them in build and made mercurial.rustext importable. This is tested