Skip to content

Fixes #205; make xlwt a dependency for pip installing#206

Merged
UnHumbleBen merged 1 commit intodevfrom
make-xlwt-a-dependency-for-pip-installing-#205
Dec 2, 2021
Merged

Fixes #205; make xlwt a dependency for pip installing#206
UnHumbleBen merged 1 commit intodevfrom
make-xlwt-a-dependency-for-pip-installing-#205

Conversation

@UnHumbleBen
Copy link
Copy Markdown
Collaborator

Description

Moved 'xlwt' from requires to install_requires. Dependencies are supposed to be specified in install_requires. I couldn't find a clear reason why requires is not valid, but I do see in the setuptools keywords page that:

requires is superseded by install_requires and should not be used anymore.

Related Issue

#205

Motivation and Context

Currently, xlwt is not installed when scadnano is installed using pip.

How Has This Been Tested?

Setup: Used new setup.py to make new PyPI test package: https://pypi.org/project/scadnano-test/

  1. Uninstall xlwt with pip uninstall xlwt
  2. Install scadnano-test pip install scadnano-test
  3. Open a python shell and ran import xlwt and verified no import error, so xlwt is installed

Copy link
Copy Markdown
Member

@dave-doty dave-doty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

requires is superseded by install_requires and should not be used anymore.

Well I'm glad to see that I wasn't hallucinating when I put it under "requires". Must have been some outdated documentation that I found online.

@UnHumbleBen UnHumbleBen merged commit a8ac5ba into dev Dec 2, 2021
@UnHumbleBen UnHumbleBen deleted the make-xlwt-a-dependency-for-pip-installing-#205 branch December 2, 2021 21:12
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.

2 participants