Skip to content

Commit

Permalink
Update setup.py to enable/load SPI automatically
Browse files Browse the repository at this point in the history
  • Loading branch information
svvitale committed Jan 29, 2015
1 parent 304249b commit 5ffb343
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ def run(self):
os.chdir( os.path.join('NxpRdLib_PublicRelease', 'build') )

def compile():
call( r"sed -i 's/^blacklist spi-bcm2708/#&/' /etc/modprobe.d/raspi-blacklist.conf", shell=True )
call( 'modprobe spi-bcm2708', shell=True )
call( 'cmake .', shell=True )
call( 'make', shell=True )

Expand All @@ -39,7 +41,7 @@ def compile():
long_description = short_description

setup (name = 'nxppy',
version = '1.2',
version = '1.2.1',
description = short_description,
long_description = long_description,
author = 'Scott Vitale',
Expand Down

0 comments on commit 5ffb343

Please sign in to comment.