Code Monkey home page Code Monkey logo

Comments (3)

sccolbert avatar sccolbert commented on June 21, 2024

You can't easy-install kiwi without running the build.py script first. This is because python's manifest file has concept of relative ancestor directories. This means that all of the C++ headers have to be copied into the Python directory first.

The easiest way to build kiwi is to run:

python build.py [build|develop|install]

which will copy the right files and then invoke setup.py

from kiwi.

sccolbert avatar sccolbert commented on June 21, 2024

I'm open to suggestions/improvements on the setup script.

from kiwi.

jwiggins avatar jwiggins commented on June 21, 2024

This is working for me (with setup.py in the repo root):

ext_modules = [
    Extension(
        'kiwisolver',
        ['py/kiwisolver.cpp',
         'py/constraint.cpp',
         'py/expression.cpp',
         'py/solver.cpp',
         'py/strength.cpp',
         'py/term.cpp',
         'py/variable.cpp'],
        include_dirs=['.', 'kiwi', 'py'],
        language='c++',
    ),
]

And the MANIFEST.in looks like this:

include MANIFEST.in
include COPYING.txt
include README.rst
include releasenotes.rst
recursive-include kiwi *.h
recursive-include py *.cpp *.h

PR submitted.

from kiwi.

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.