Issue #145 new

run 2to3 with sdist + create a cache

Tarek Ziadé avatarTarek Ziadé created an issue

To speed up the install command and the test command, that use 2to3, we could keep the py3 build that was created by 2to3 and just update it when the code change.

This build could be reused as well as included in the source distribution.

Last, sdist could also have a new option called '--only-py3' that would produce a pure Python 3 archive distribution.

Comments (4)

  1. Lennart Regebro

    It *is* kept and only updated when you change the code. :) But it's not included in the distribution, and it uses the same build directory as Python 2 builds, which can confuse things. A first step for this would be to use a specific Python 3 build directory. Then you could check that in if you want to save it between checkouts. How to make an sdist with both in is beyond me though...

  2. Tarek Ziadé

    It *is* kept and only updated when you change the code.

    Oh sorry, I didn't notice it

    But it's not included in the distribution, and it uses the same build directory as Python 2 builds, which can confuse things. A first step for this would be to use a specific Python 3 build directory. Then you could check that in if you want to save it between checkouts.

    Ok,

    How to make an sdist with both in is beyond me though...

    You mean, like having both build dirs ? At some point this would require some work in the sdist command itself.

    Hey Lennart, want to give a shot on this one ? ;)

  3. Anonymous
  4. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.