Skip to content

Commit

Permalink
remove swig from setup process
Browse files Browse the repository at this point in the history
  • Loading branch information
ponty committed May 26, 2016
1 parent 16589d0 commit 1975916
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
2 changes: 2 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ include README*
include setup.py
recursive-include pysimavr *.h
prune docs/_build
recursive-include pysimavr *_wrap.c
recursive-exclude pysimavr *.i
4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ Ubuntu 14.04
::

sudo apt-get install python-pip
sudo apt-get install swig python-dev gcc libelf-dev arduino
sudo apt-get install python-dev gcc libelf-dev arduino
sudo pip install pysimavr
# optional for some tests:
sudo apt-get install freeglut3-dev scons
sudo apt-get install freeglut3-dev scons swig

Uninstall
---------
Expand Down
24 changes: 13 additions & 11 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ def part(name):
return Extension(name='pysimavr.swig._' + name,
sources=[
PARTS + '/' + name + '.c',
SWIG + '/' + name + '.i',
# SWIG + '/' + name + '.i',
SWIG + '/' + name + '_wrap.c',
# 'pysimavr/swig/sim/sim_cycle_timers.c',
# 'pysimavr/swig/sim/sim_irq.c',
# 'pysimavr/swig/sim/sim_io.c',
Expand All @@ -89,11 +90,11 @@ def part(name):
INCLUDE_SIMAVR, INCLUDE_AVR,
PARTS,
],
swig_opts=[
# '-modern',
'-I' + PARTS,
'-I' + SIM,
],
# swig_opts=[
# # '-modern',
# '-I' + PARTS,
# '-I' + SIM,
# ],
extra_compile_args=[
'--std=gnu99',
],
Expand All @@ -102,7 +103,8 @@ def part(name):
ext_modules = [
Extension(name='pysimavr.swig._simavr',
sources=[
SWIG + '/simavr.i',
# SWIG + '/simavr.i',
SWIG + '/simavr_wrap.c',
SWIG + '/simavr_logger.cpp',
]
+ files(SIM, '*.c')
Expand All @@ -112,10 +114,10 @@ def part(name):
SIM,
INCLUDE_SIMAVR, INCLUDE_AVR,
],
swig_opts=[
# '-modern',
'-I' + SIM,
],
# swig_opts=[
# # '-modern',
# '-I' + SIM,
# ],
extra_compile_args=[
'--std=gnu99',
'-DNO_COLOR',
Expand Down

0 comments on commit 1975916

Please sign in to comment.