Skip to content

Commit

Permalink
fix setup.py to copy hpb
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmkrieger committed Apr 17, 2024
1 parent b7b2be2 commit 8948063
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
from setuptools import setup
from setuptools import Extension

import shutil

if sys.version_info[:2] < (2, 7):
sys.stderr.write('Python 2.6 and older is not supported\n')
sys.exit()
Expand Down Expand Up @@ -94,7 +96,15 @@

from glob import glob
tntDir = join('prody', 'utilities', 'tnt')
hpbDir = join('prody', 'proteins', 'hpbmodule')
hpbSoDir = join('prody', 'proteins', 'hpbmodule',
'hpb_Python{0}.{1}'.format(sys.version_info[0],
sys.version_info[1]))
proteinsDir = join('prody', 'proteins')

try:
shutil.copy(hpbSoDir + "/hpb.so", proteinsDir)
except FileNotFoundError:
pass

EXTENSIONS = [
Extension('prody.dynamics.rtbtools',
Expand Down Expand Up @@ -164,8 +174,8 @@
setup(
name='ProDy',
version=__version__,
author='James Krieger, She Zhang, Hongchun Li, Cihan Kaya, Ahmet Bakan, and others',
author_email='[email protected]',
author='James Krieger, Karolina Mikulska-Ruminska, She Zhang, Hongchun Li, Cihan Kaya, Ahmet Bakan, and others',
author_email='[email protected]',
description='A Python Package for Protein Dynamics Analysis',
long_description=long_description,
url='http://www.csb.pitt.edu/ProDy',
Expand Down

0 comments on commit 8948063

Please sign in to comment.