Coder Social home page Coder Social logo

Comments (6)

wrl avatar wrl commented on June 22, 2024

you need to build your own waf executable with the tool included. clone the waf repo and do
./waf-light --tools=cython

from libmonome.

simonvanderveldt avatar simonvanderveldt commented on June 22, 2024

you need to build your own waf executable with the tool included. clone the waf repo and do
./waf-light --tools=cython

@wrl I manged to get it to work by including the waf cython tool which is part of the extra modules https://github.com/waf-project/waf/blob/master/waflib/extras/cython.py.

Which way would you prefer to fix this? Build the waf executable which includes the cython waf tool or include the above mentioned file in the repo?

from libmonome.

wrl avatar wrl commented on June 22, 2024

would much prefer building the waf executable.

from libmonome.

simonvanderveldt avatar simonvanderveldt commented on June 22, 2024

would much prefer building the waf executable.

OK, I'll create a PR

from libmonome.

coreyker avatar coreyker commented on June 22, 2024

Just tried to build this with

./waf configure --enable-python --python=/usr/local/bin/python2.7
./waf build
./waf install

but the python bindings aren't showing up in /usr/local/lib/python2.7/site-packages, and import monome fails. Not sure if I'm doing something wrong as I thought this issue was resolved...

from libmonome.

coreyker avatar coreyker commented on June 22, 2024

I was able to build it manually by making a setup.py file with the contents:

from distutils.core import setup
from distutils.extension import Extension
from Cython.Build import cythonize

ext_modules = [
    Extension("monome",
              sources=["monome.pyx"],
              libraries=["monome"]  # Unix-like specific
              )
]

setup(name="Demos",
      ext_modules=cythonize(ext_modules))

and invoking python setup.py build_ext --inplace

from libmonome.

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.