pygradle icon indicating copy to clipboard operation
pygradle copied to clipboard

Build Wheels

Open derenrich opened this issue 9 years ago • 4 comments

It'd be nice if pygradle could produce wheels. Similar to #78

Would you accept PRs to accomplish this?

derenrich avatar Jan 05 '17 02:01 derenrich

We're working on this too.

We've found the tricky part to adding first class wheel support (as well as egg support, or any other binary distribution format) is how to cleanly take care of dependency management. Eg., how do you declare a dependency on the wheel flavor of the dependency instead of the sdist? Can you depend on both? With a binary format, another thing we have to worry about is os/arch variants, which is equally difficult to merge into Ivy's way of doing declaration.

If you have ideas on this front, let us know!

sholsapp avatar Jan 05 '17 15:01 sholsapp

+1

augray avatar Jan 06 '18 00:01 augray

For the os/arch question, how about using a gradle.properties to specify what your os/arch are?

For expressing dependencies, would it be possible to allow a way to optionally use an extension object (like in example 41.2) to specify what format the dependency should be installed from? Something roughly like:

dependencies {
    python 'pypi:numpy:1.11.2'
    python 'pypi:requests:2.9.1'
}

python.dependencyFormats = [
    'pypi:numpy' : 'wheel', 
    'pypi:requests' : 'sdist'
]

The os/arch of the wheel to retrieve could be obtained in the same way the os/arch is determined when deciding what kind of wheel will be built (ex, through a gradle.properties).

Just some brainstorming!

augray avatar Jan 06 '18 01:01 augray

Any news on this front?

jgriff avatar Mar 29 '21 16:03 jgriff