Skip to content

Commit 6e0fbbe

Browse files
Merge pull request #38 from kacper-ka/master
Updated erpc_python/setup.py
2 parents 27a1ac1 + 3544db8 commit 6e0fbbe

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

erpc_python/setup.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,26 @@
77
# SPDX-License-Identifier: BSD-3-Clause
88

99
from setuptools import setup
10-
from erpc import erpc_version
1110
from codecs import open
1211
from os import path
1312

13+
ERPC_VERSION = None
1414
here = path.abspath(path.dirname(__file__))
1515

1616
with open(path.join(here, 'README_Pypi.md'), encoding='utf-8') as f:
1717
long_description = f.read()
1818

19+
with open(path.join(here, 'erpc', 'erpc_version.py')) as f:
20+
exec(f.read())
21+
1922
#steps: https://packaging.python.org/distributing/
2023
#source distribution: python setup.py sdist
2124
#wheel distribution: python setup.py bdist_wheel
2225
#web: https://pypi.python.org/pypi?%3Aaction=submit_form
2326

2427
setup(
2528
name="erpc",
26-
version=erpc_version.ERPC_VERSION,
29+
version=ERPC_VERSION,
2730
description="eRPC Python infrastructure",
2831
long_description=long_description,
2932
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)