Skip to content

Fix automatic installation of dependencies. #73

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

frantp
Copy link

@frantp frantp commented Dec 9, 2019

Currently, setup.py imports the __init__.py file to get the package version; this prevents the automatic installation of pyserial, giving the following error if it is not manually installed before pypozyx:

Traceback (most recent call last):
    ...
    from serial import Serial, VERSION as PYSERIAL_VERSION, SerialException, line 10, in <module>
ModuleNotFoundError: No module named 'serial'

This patch moves the definition of the version string to a separate file, avoiding dependency imports during installation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant