You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

27 lines
690 B

  1. #!/usr/bin/env python
  2. from distutils.command.build import build
  3. from distutils.core import setup
  4. import os
  5. class my_build(build):
  6. def run(self):
  7. build.run(self)
  8. if not self.dry_run:
  9. os.spawnlp(os.P_WAIT, 'sh', 'sh', '-c', 'cd .. && gmake lib')
  10. self.copy_file(os.path.join('..', 'build', 'lib', 'libdecaf.so'), os.path.join(self.build_lib, 'edgold'))
  11. cmdclass = {}
  12. cmdclass['build'] = my_build
  13. setup(name='edgold',
  14. version='0.1',
  15. description='The Ed ECC Goldilocks Python wrapper',
  16. author='John-Mark Gurney',
  17. author_email='jmg@funkthat.com',
  18. #url='',
  19. cmdclass=cmdclass,
  20. packages=['edgold', ],
  21. )