Skip to content
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

boost::python and pyenv #585

Closed
tgy opened this issue Apr 29, 2016 · 3 comments
Closed

boost::python and pyenv #585

tgy opened this issue Apr 29, 2016 · 3 comments

Comments

@tgy
Copy link

tgy commented Apr 29, 2016

I'd like to write a C++ python module with boost::python.

What is the procedure to make it work with pyenv?

I am asking myself the following questions:

  • Do I need to build boost::python specifically for every python version I installed with pyenv?
  • If so, how do I do that?

Thanks! 😄


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@yyuu
Copy link
Contributor

yyuu commented Apr 30, 2016

I guess you need to build boost:: python against pyenv built python. Probablly boost::python's build script must be providing some configure option to specify path to python installation.

// I need some answer from active boost users...

@astocko
Copy link

astocko commented Mar 16, 2017

You just need to set the path in a Boost.Build configuration file.

3.6.0 example

echo "using python : : ~/.pyenv/versions/3.6.0/bin/python ;" > ~/user-config.jam
./bootstrap.sh
./b2
sudo ./b2 install

Alternatively, you can also use the --with-python option on bootstrap.sh.

@chrahunt
Copy link
Member

Thanks @astocko. @tgy, let us know if you need any more assistance with this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants