retep / tuke

A EDA toolkit for programmically creating hardware with Python.

This URL has Read+Write access

tuke / HACKING
100644 49 lines (30 sloc) 0.804 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
=============
 HACKING: Tuke
=============
 
:Author: Peter Todd
:Contact: 'peter'[:-1]@petertodd.org
:Web site: http://petertodd.org
 
.. contents::
 
In-Place Development
====================
 
Tuke uses some native C modules which need to be compiled before use. setup.py
uses setup tools, so the correct command sequence is the following:
 
mkdir build
export PYTHONPATH=build
 
Then after every change to a native C module:
 
./setup.py develop -d build
 
Unittests
=========
 
To run all unit tests:
 
./tuke test
 
For other options:
 
./tuke test --help
 
Examples
========
 
Currently one example is usable:
 
cd examples
./led_grid 10 10 10x10 && gerbv 10x10.*
 
Creates a 10x10 series-parallel led grid.
 
You can also leave off the gerber output prefix to see the Python code for that
grid:
 
./led_grid 10 10