Skip to content

Commit 44eb0c6

Browse files
committed
Some new tests on binary distribution.
1 parent ea5262d commit 44eb0c6

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

setup.py

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,27 @@ def platform_detection(install_binaries=True):
1515
"""
1616
if install_binaries is True:
1717
if sys.platform == "linux":
18-
bin_dir = "bins.linux"
18+
bin_pkg = "bins.linux"
19+
bin_dir = "structure_threader/bins/linux"
1920
elif sys.platform == "darwin":
20-
bin_dir = "bins.osx"
21+
bin_pkg = "bins.osx"
22+
bin_dir = "structure_threader/bins/osx"
2123
else:
2224
return None
2325
else:
2426
return None
2527

26-
return {bin_dir: ["*"]}
28+
structure_bin = bin_dir + "/structure"
29+
faststructure_bin = bin_dir + "/fastStructure"
30+
31+
return [('bin', [faststructure_bin, structure_bin])], {bin_pkg: ["*"]}
2732

2833

2934
# Set some variables (PKGBUILD inspired)
30-
DATA_FILES = platform_detection()
31-
VERSION = "0.1.7"
35+
DATA_FILES, DATA_PACKAGE = platform_detection()
36+
VERSION = "0.1.7.1"
3237
URL = "https://github.com/StuntsPT/Structure_threader"
3338

34-
print(DATA_FILES)
3539

3640
setup(
3741
name="structure_threader",
@@ -55,7 +59,8 @@ def platform_detection(install_binaries=True):
5559
"Natural Language :: English",
5660
"Operating System :: POSIX :: Linux",
5761
"Topic :: Scientific/Engineering :: Bio-Informatics"],
58-
package_data=DATA_FILES,
62+
data_files=DATA_FILES,
63+
package_data=DATA_PACKAGE,
5964
entry_points={
6065
"console_scripts": [
6166
"structure_threader = structure_threader.structure_threader:main",

0 commit comments

Comments
 (0)