Skip to content

Commit e0f75fd

Browse files
committed
Attempt to prevent binary name conflict
1 parent cbe8182 commit e0f75fd

2 files changed

Lines changed: 13 additions & 5 deletions

File tree

setup.cfg

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ replace = version='{new_version}'
1111
search = __version__ = '{current_version}'
1212
replace = __version__ = '{new_version}'
1313

14+
[bdist_wheel]
15+
universal = 1
16+
17+
[install]
18+
# do not install any binary distributions
19+
# (prevents pip from overwriting opencdms_cli's `opencdms` command)
20+
no-binary=1
21+
1422
[aliases]
1523
# Define setup.py command aliases here
1624
test = pytest

setup.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@
3737
"Programming Language :: Python :: 3.9",
3838
],
3939
description="OpenCDMS Python package",
40+
entry_points={
41+
"console_scripts": [
42+
"pyopencdms=opencdms_cli.cli:main",
43+
],
44+
},
4045
install_requires=requirements,
4146
license="MIT license",
4247
long_description=readme + "\n\n" + history,
@@ -50,9 +55,4 @@
5055
url="https://github.com/opencdms/opencdms",
5156
version="0.1.0",
5257
zip_safe=False,
53-
options={'bdist_wheel': {'universal': True}, 'build_scripts': {'executable': ''}},
5458
)
55-
56-
# Important: 'build_scripts': {'executable': ''} prevents pip from creating an `opencdms`
57-
# command line script that overwrites the one created by opencdms_cli if
58-
# pyopencdms is installed second.

0 commit comments

Comments
 (0)