Skip to content

Make numpy an optional dependency - #48

Open
timminator wants to merge 1 commit into
jfolz:masterfrom
timminator:feature-numpy-optional
Open

timminator wants to merge 1 commit into
jfolz:masterfrom
timminator:feature-numpy-optional

Conversation

@timminator

Copy link
Copy Markdown

Hi!

I am really liking your package and plan to use it in my project. :-)
It is already pretty lightweight but it would be awesome if it could work also without numpy.
It also doesn't really require it so I made it an optional dependency with this PR.
The old functionality is still kept out of the box, numpy is just lazily imported. This is similar to PyAV for handling its to_ndarray" function for example.

Let me know what you think or if you'd like any changes!

@Borda Borda left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

this would be great!

@timminator

Copy link
Copy Markdown
Author

For the time being I made a fork with this PR in place - also with downloadable packages. People interested can find it here:
https://github.com/timminator/simplejpeg

This branch has not been deployed

No deployments
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