Comments (3)
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.
I'm open to suggestions/improvements on the setup script.
from kiwi.
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)
- Documentation: How to build on Windows HOT 5
- AssocVector implicit copy constructor warning
- Not compatible with setuptools >=61 HOT 1
- License info on PyPI contains complete license text HOT 5
- 1.4.2: pep517 warnings HOT 18
- pip install fails on Python 3.11b3 HOT 17
- Failed building wheel for kiwisolver :( HOT 4
- Cann't install on python 3.11b3 HOT 2
- 1.4.3 has no attribute __version__ HOT 2
- ERROR: Failed building wheel for kiwisolver: C2440: 'static_cast': cannot convert from 'expr_type' to 'type' HOT 2
- Provide cp311 releases HOT 1
- Objective cell memory leak? HOT 26
- Continuous fuzzing by way of Google's OSS-Fuzz HOT 1
- Tests fail on pypy
- #egg=kiwisolver See assertion error when installing kiwisolver HOT 4
- about duplicate constraints HOT 3
- Add Python API to get all constraints HOT 14
- Is it possible to get the absolute value of an expression? HOT 10
- Is it possible to tell the Solver to prefer smaller or larger solutions? HOT 3
- Missing type hint for `Constraint.violated()` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kiwi.