Skip to content

Commit cc4d342

Browse files
committed
two projects to solve multi-stage
1 parent 833b5bc commit cc4d342

File tree

3 files changed

+46
-34
lines changed

3 files changed

+46
-34
lines changed

actual_setup.py

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
from setuptools import setup, find_packages
2+
from pathlib import Path
3+
4+
version = 0.1
5+
with Path('README.md').open() as readme:
6+
readme = readme.read()
7+
8+
setup(
9+
name='pspy-proxy',
10+
version=version if isinstance(version, str) else str(version),
11+
keywords="", # keywords of your project that separated by comma ","
12+
description="", # a concise introduction of your project
13+
long_description=readme,
14+
long_description_content_type="text/markdown",
15+
license='mit',
16+
python_requires='>=3.5.0',
17+
url='https://github.com/purescript-python/installer',
18+
author='thautawarm',
19+
author_email='[email protected]',
20+
packages=['pspy_proxy'],
21+
entry_points={"console_scripts": ['pspy-blueprint=pspy_proxy.proxy:main']},
22+
# above option specifies what commands to install,
23+
# e.g: entry_points={"console_scripts": ["yapypy=yapypy.cmd:compiler"]}
24+
install_requires=['purescripto>=0.7.3', 'requests'], # dependencies
25+
platforms="any",
26+
classifiers=[
27+
"Programming Language :: Python :: 3.5",
28+
"Programming Language :: Python :: 3.6",
29+
"Programming Language :: Python :: 3.7",
30+
"Programming Language :: Python :: 3.8",
31+
"Programming Language :: Python :: 3.9",
32+
"Programming Language :: Python :: Implementation :: CPython",
33+
],
34+
zip_safe=False,
35+
)

pspy_placeholder/__init__.py

Whitespace-only changes.

setup.py

Lines changed: 11 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,18 @@
1-
import sys
2-
from subprocess import call
31
from setuptools import setup, find_packages
2+
import sys
3+
import os
44
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'])
2910

3011
version = 0.1
31-
with Path('README.md').open() as readme:
32-
readme = readme.read()
12+
readme = ''
3313

3414
setup(
35-
name='pspy-proxy',
15+
name='pspy-placeholder',
3616
version=version if isinstance(version, str) else str(version),
3717
keywords="", # keywords of your project that separated by comma ","
3818
description="", # a concise introduction of your project
@@ -43,11 +23,8 @@
4323
url='https://github.com/purescript-python/installer',
4424
author='thautawarm',
4525
author_email='[email protected]',
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=[],
5128
platforms="any",
5229
classifiers=[
5330
"Programming Language :: Python :: 3.5",

0 commit comments

Comments
 (0)