|
1 | | -import sys |
2 | | -from subprocess import call |
3 | 1 | from setuptools import setup, find_packages |
| 2 | +import sys |
| 3 | +import os |
4 | 4 | from pathlib import Path |
5 | | - |
6 | | -# https://github.com/pypa/pip/issues/7498 |
7 | | -try: |
8 | | - from pip._internal.main import main |
9 | | - if not callable(main): |
10 | | - raise ImportError |
11 | | - |
12 | | -except ImportError: |
13 | | - try: |
14 | | - from pip._internal import main |
15 | | - if not callable(main): |
16 | | - raise ImportError |
17 | | - |
18 | | - except ImportError: |
19 | | - from pip import main |
20 | | - |
21 | | - if not callable(main): |
22 | | - raise ImportError |
23 | | - |
24 | | -print("Installing binaries...") |
25 | | - |
26 | | -main(['install', '-U', 'purescripto', '--no-cache']) |
27 | | -main(['install', 'requests']) |
28 | | -call([sys.executable, str(Path(__file__).parent / "install_binary.py")]) |
| 5 | +from subprocess import call |
| 6 | +dir = Path(__file__).parent.absolute() |
| 7 | +os.chdir(str(dir)) |
| 8 | +call([sys.executable, 'actual_setup.py', 'install']) |
| 9 | +call([sys.executable, 'install_binary.py']) |
29 | 10 |
|
30 | 11 | version = 0.1 |
31 | | -with Path('README.md').open() as readme: |
32 | | - readme = readme.read() |
| 12 | +readme = '' |
33 | 13 |
|
34 | 14 | setup( |
35 | | - name='pspy-proxy', |
| 15 | + name='pspy-placeholder', |
36 | 16 | version=version if isinstance(version, str) else str(version), |
37 | 17 | keywords="", # keywords of your project that separated by comma "," |
38 | 18 | description="", # a concise introduction of your project |
|
43 | 23 | url='https://github.com/purescript-python/installer', |
44 | 24 | author='thautawarm', |
45 | 25 | |
46 | | - packages=find_packages(), |
47 | | - entry_points={"console_scripts": ['pspy-blueprint=pspy_proxy.proxy:main']}, |
48 | | - # above option specifies what commands to install, |
49 | | - # e.g: entry_points={"console_scripts": ["yapypy=yapypy.cmd:compiler"]} |
50 | | - install_requires=['purescripto>=0.7.3', 'requests'], # dependencies |
| 26 | + packages=['pspy_placeholder'], |
| 27 | + install_requires=[], |
51 | 28 | platforms="any", |
52 | 29 | classifiers=[ |
53 | 30 | "Programming Language :: Python :: 3.5", |
|
0 commit comments