Skip to content

Commit 716139a

Browse files
committed
Improved multiplatform support for instalation.
1 parent ee54d14 commit 716139a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

setup.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
11
#!/usr/bin/python3
22

3+
import platform
34
try:
45
from setuptools import setup
56
except ImportError:
67
import ez_setup
78
ez_setup.use_setuptools()
89
from setuptools import setup
910

11+
if platform.system() == "Linux":
12+
bin_dir = "bins/linux"
13+
elif platform.system() == "Darwin":
14+
bin_dir = "bins/osx"
15+
16+
structure_bin = bin_dir + "/structure"
17+
faststructure_bin = bin_dir + "/fastStructure"
18+
1019
setup(
1120
name="structure_threader",
1221
version="0.1.5",
@@ -30,7 +39,7 @@
3039
"Natural Language :: English",
3140
"Operating System:: POSIX:: Linux",
3241
"Topic :: Scientific/Engineering :: Bio-Informatics"],
33-
data_files=[('bin', ['bins/linux/fastStructure', 'bins/linux/structure'])],
42+
data_files=[('bin', [faststructure_bin, structure_bin])],
3443
entry_points={
3544
"console_scripts": [
3645
"structure_threader = structure_threader.structure_threader:main",

0 commit comments

Comments
 (0)