Difference between building distribution packages with python3 and python2?

himanshu219

I am trying to build python packages using this doc

I have couple of questions

  1. Is there any difference in wheel packages generated using tools(setuptools and wheel) with python2 versus python3.

  2. Are packages generated by python3 setup.py bdist_wheel compatible with python2 and vice versa (assuming the source code is compatible with both versions).

jwodder

Is there any difference in wheel packages generated using tools(setuptools and wheel) with python2 versus python3.

There may be some byte-for-byte differences due to differing zip compression algorithms, but there is no meaningful difference, except...

Are packages generated by python3 setup.py bdist_wheel compatible with python2 and vice versa (assuming the source code is compatible with both versions).

By default, a wheel built with Python 2 will only be valid for Python 2, and a wheel built with Python 3 will only be valid for Python 3. This can be changed by adding the following to the project's setup.cfg file:

[bdist_wheel]
universal = 1

With this option added, generated wheels will be "universal", compatible with both Python 2 and Python 3.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

What is the difference between with and if in Python2?

From Dev

Difference between Python3 and Python2 - socket.send data

From Dev

Difference between python2 and 3 for numbers with leading zeroes.

From Dev

Python2 Packages not recoganised by Python3

From Dev

difference between [] and list() in python3

From Dev

Portable meta class between python2 and python3

From Dev

Portable meta class between python2 and python3

From Dev

Building Python Extension Packages for Launchpad

From Dev

Building packages with conda and python3k

From Dev

Difference between __new__ and __init__ order in Python2/3

From Dev

Difference between map and list iterators in python3

From Dev

What's the difference between b2 and ./bootstrap.sh when building python

From Java

What is the difference between dict.items() and dict.iteritems() in Python2?

From Dev

Building Python packages succeeds, but package is improperly built

From Dev

Difference between "//" and "/" in Python 2

From Dev

How to switch between python2 and python3 pip on Fedora 22?

From Dev

StringIO portability between python2 and python3 when capturing stdout

From Dev

Python Namespace Packages in Python3

From Dev

CentOS python3 package difference between python36 and python36u

From Dev

Difference between list() and [ ] in Python 3

From Dev

Difference in "dir" between Python 2 and 3

From Dev

what is the difference between importing python sub-modules from NumPy, matplotlib packages

From Dev

What is the difference on a system level between installing python packages with yum as opposed to pip?

From Dev

Difference between pip3 and `python3 setup.py install` regarding cmdclass argument

From Dev

What's the difference between the keywords 'python' and 'python3' in command lines?

From Dev

Error when trying to install python2 packages

From Dev

Should I install these packages for python3?

From Dev

Difference between Mate installation packages

From Dev

Difference between fonts-liberation and fonts-liberation2 packages?

Related Related

  1. 1

    What is the difference between with and if in Python2?

  2. 2

    Difference between Python3 and Python2 - socket.send data

  3. 3

    Difference between python2 and 3 for numbers with leading zeroes.

  4. 4

    Python2 Packages not recoganised by Python3

  5. 5

    difference between [] and list() in python3

  6. 6

    Portable meta class between python2 and python3

  7. 7

    Portable meta class between python2 and python3

  8. 8

    Building Python Extension Packages for Launchpad

  9. 9

    Building packages with conda and python3k

  10. 10

    Difference between __new__ and __init__ order in Python2/3

  11. 11

    Difference between map and list iterators in python3

  12. 12

    What's the difference between b2 and ./bootstrap.sh when building python

  13. 13

    What is the difference between dict.items() and dict.iteritems() in Python2?

  14. 14

    Building Python packages succeeds, but package is improperly built

  15. 15

    Difference between "//" and "/" in Python 2

  16. 16

    How to switch between python2 and python3 pip on Fedora 22?

  17. 17

    StringIO portability between python2 and python3 when capturing stdout

  18. 18

    Python Namespace Packages in Python3

  19. 19

    CentOS python3 package difference between python36 and python36u

  20. 20

    Difference between list() and [ ] in Python 3

  21. 21

    Difference in "dir" between Python 2 and 3

  22. 22

    what is the difference between importing python sub-modules from NumPy, matplotlib packages

  23. 23

    What is the difference on a system level between installing python packages with yum as opposed to pip?

  24. 24

    Difference between pip3 and `python3 setup.py install` regarding cmdclass argument

  25. 25

    What's the difference between the keywords 'python' and 'python3' in command lines?

  26. 26

    Error when trying to install python2 packages

  27. 27

    Should I install these packages for python3?

  28. 28

    Difference between Mate installation packages

  29. 29

    Difference between fonts-liberation and fonts-liberation2 packages?

HotTag

Archive