Skip to content
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

[WIP] Rework zbar (add python3 compatibility + add recipes: pyzbar and zbarlight) #1583

Merged
merged 3 commits into from
Jan 21, 2019

Conversation

opacam
Copy link
Member

@opacam opacam commented Jan 12, 2019

  • Add ability to use libzbar for python2 and python3
  • Add two more recipes (pyzbar and zbarlight) because those two are compatible with python3, the old zbar recipe seems unmaintained and working only for python2.

Note: this should be properly tested with some application using this recipes, I only tested the build for python 2 and python 3...so...any feedback about this will be great...

The python headers are set in the method get_recipe_env of PythonRecipe's base class, so there is no need to set the python headers. Also make sure that we can build with python2legacy. Also move libraries from LDFLAGS TO LIBS.
The libzbar recipe contains some flags already set in base class method of get_recipe_env, so removed. Also grants python3 compatibility for libzbar because, despite that the zbar recipe isn't compatible with python3 (the project is stucked in python2 plus it seems unmaintained)...but there are alternatives which can replace it, so we add the pyzbar recipe which works for both versions of python so python3 will have an equivalent to the python2's zbar. Also moved libraries from LDFLAGS to LIBS.
@AndreMiras
Copy link
Member

Looking overall good to me, why is it a WIP?

@opacam
Copy link
Member Author

opacam commented Jan 12, 2019

Because I only tested the build of those recipes. I usually modify some app and try to import and make some calls...but in this case I hadn't got time for that...it seems to build fine, the packages are installed where they should be...it should work...but not properly tested...

Copy link
Member

@AndreMiras AndreMiras left a comment

Choose a reason for hiding this comment

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

Better than the current state where it didn't even compile for python3. Will create issue/PR if we get runtime issues

@AndreMiras AndreMiras merged commit 45a3d8a into kivy:master Jan 21, 2019
@ghost
Copy link

ghost commented Sep 26, 2021

mchehab continues to work on zbar, it is Python 3 compatible. You should use this version.

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