Skip to content

Commit

Permalink
Still install PyWavelets and scipy by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Avasam authored Dec 13, 2023
1 parent b7b99e4 commit 208490c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ Easy installation through `pypi`_::

pip install imagehash

scipy and PyWavelets are optional. If you intend on using pHash or wHash, you can install the right dependencies using::
scipy and PyWavelets are optional. If you don't intend on using them, you can install ImageHash using:

pip install imagehash[phash]
pip install imagehash[whash]
pip install imagehash --no-dependencies
pip install numpy pillow

Basic usage
===========
Expand Down Expand Up @@ -167,7 +167,7 @@ and show how you can create a reverse image search using hashes generated by thi
Changelog
----------

* Unreleased: Make PyWavelets and scipy optional installs by @Avasam
* Unreleased: Make PyWavelets and scipy optional if ImageHash is installed with `--no-dependencies` installs by @Avasam

* 4.3: typing annotations by @Avasam @SpangleLabs and @nh2

Expand Down
8 changes: 3 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,10 @@
long_description_content_type='text/x-rst',
install_requires=[
'numpy',
'scipy', # for phash
'pillow', # or PIL
'PyWavelets', # for whash
'pillow', # or PIL
],
extras_require={
"whash": "PyWavelets", # for whash
'phash': "scipy", # for phash
},
test_suite='tests',
tests_require=['pytest>=3'],
)

0 comments on commit 208490c

Please sign in to comment.