Skip to content

Commit 624fe40

Browse files
author
vtheno
committed
move install_binary.py to pspy_proxy
1 parent f9d6187 commit 624fe40

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

actual_setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
# above option specifies what commands to install,
2323
# e.g: entry_points={"console_scripts": ["yapypy=yapypy.cmd:compiler"]}
2424
install_requires=['purescripto>=0.7.5', 'requests'], # dependencies
25+
scripts=['pspy_proxy/install_binary.py'],
2526
platforms="any",
2627
classifiers=[
2728
"Programming Language :: Python :: 3.5",

pspy_proxy/common.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
from pathlib import Path
2-
from sys import executable
3-
# out_path = Path('~/.pspy/bin').expanduser()
4-
out_path = Path(executable).parent.expanduser()
2+
# from sys import executable
3+
out_path = Path(__file__).parent.expanduser()

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@
33
import os
44
from pathlib import Path
55
from subprocess import call
6+
from distutils.util import get_platform
7+
exe_suffix = 'win' in get_platform() and '.exe' or ''
68
dir = Path(__file__).parent.absolute()
79
os.chdir(str(dir))
810
call([sys.executable, 'actual_setup.py', 'install'])
9-
call([sys.executable, 'install_binary.py'])
11+
# call([sys.executable, 'install_binary.py'])
12+
call(['install_binary.py'])
1013

1114
version = 0.1
1215
readme = ''

0 commit comments

Comments
 (0)