Giter Site home page Giter Site logo

Comments (9)

jckarter avatar jckarter commented on July 22, 2024

I'm not a big python guy. Is there an idiomatic way of choosing a particular python version in the #! line?

from clay.

solson avatar solson commented on July 22, 2024

I'm not a python guy either, but I think #!/usr/bin/env python2 would work on most linux distros.

from clay.

solson avatar solson commented on July 22, 2024

Actually it might be more portable to use the exact version, for example #!/usr/bin/env python2.7. From what I've read it seems like more distros have binaries like that.

from clay.

jckarter avatar jckarter commented on July 22, 2024

Yeah, brew on macosx only installs python2.7 but no python2. I'll use that then.

from clay.

jckarter avatar jckarter commented on July 22, 2024

I wasn't sure how exactly to cajole cmake's FindPythonInterp into favoring 2.7, but I hope this will work. Let me know how it goes, @tsion.

from clay.

solson avatar solson commented on July 22, 2024

I still get -- Found PythonInterp: /usr/bin/python (found version "3.2.2") from cmake unfortunately.

from clay.

solson avatar solson commented on July 22, 2024

I just found out I can force it by running cmake -D PYTHON_EXECUTABLE=/usr/bin/python2 -G "Unix Makefiles" ../.

from clay.

jckarter avatar jckarter commented on July 22, 2024

@tsion I picked up Elrood's patch. Let me know if it works for you now.

from clay.

solson avatar solson commented on July 22, 2024

Cool, thanks, it works now.

It was a little confusing at first because the cmake output still only mentioned finding Python 3 since the code that Elrood added doesn't output anything, but that's not a big issue.

from clay.

Related Issues (20)

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.