vienna-rna-2.1.1-setup.py 810 B

12345678910111213141516171819202122232425262728
  1. from distutils.core import setup, Extension
  2. import os
  3. import sys
  4. old_filename = os.path.join("Perl", "RNA.py")
  5. new_filename = os.path.join("Perl", "__init__.py")
  6. if os.path.exists(old_filename):
  7. os.rename(old_filename, new_filename)
  8. extra_link_args = []
  9. extension = Extension("_RNA",
  10. ["Perl/RNA_wrap.c"],
  11. libraries=['RNA'],
  12. library_dirs=['lib'],
  13. extra_link_args=extra_link_args
  14. )
  15. setup(name="RNA",
  16. version="2.1.1",
  17. description="Vienna RNA",
  18. author="Ivo Hofacker, Institute for Theoretical Chemistry, University of Vienna",
  19. url="http://www.tbi.univie.ac.at/RNA/",
  20. package_dir = {'RNA':'Perl'},
  21. packages = ['RNA'],
  22. ext_modules=[extension],
  23. )