Skip to content

Commit

Permalink
add support of --root option with setup.py
Browse files Browse the repository at this point in the history
  • Loading branch information
bneron committed Nov 9, 2016
1 parent 7d1bf91 commit 32d1564
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,12 @@ def get_install_data_dir(inst):
elif 'user' in inst:
import site
inst['prefix'] = ('command line', site.USER_BASE)
elif 'root' in inst:
inst['prefix'] = ('command line',
os.path.join(inst['root'][1],
sysconfig.get_path('data').strip(os.path.sep)
)
)

if 'install_data' in inst:
install_dir = inst['install_data'][1]
Expand Down Expand Up @@ -176,7 +182,7 @@ def remove_prefix(prefix, path):
###################################################

setup(name='integron_finder',
version="1.5.1.RC1",
version="1.5.1rc3",
description="Integron Finder aims at detecting integrons in DNA sequences",
long_description="""Integron Finder aims at detecting integrons in DNA sequences
by finding particular features of the integron:
Expand Down

0 comments on commit 32d1564

Please sign in to comment.