forked from deephaven/deephaven-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Python library for embedded server (deephaven#2353)
Introduces a Python library that can start the Deephaven server from python code. This consists of a wheel that holds not only some python glue to start the server, but all of the jars required to be on the deephaven classpath. Presently this depends on deephaven's own jpy fork, but soon this limitation will be dropped and the upstream jpy project will work. Partial deephaven#2221
- Loading branch information
1 parent
95bfb25
commit 281b193
Showing
37 changed files
with
753 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
buildSrc/src/main/groovy/io/deephaven/python/PythonWheelExtension.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package io.deephaven.python | ||
|
||
import org.gradle.api.Action | ||
import org.gradle.api.file.CopySpec | ||
import org.gradle.api.internal.file.copy.DefaultCopySpec | ||
import org.gradle.api.model.ObjectFactory | ||
import org.gradle.api.provider.Property | ||
import org.gradle.util.ConfigureUtil | ||
|
||
class PythonWheelExtension { | ||
private Action<? super CopySpec> contents | ||
|
||
PythonWheelExtension(ObjectFactory objectFactory) { | ||
//objectFactory.newInstance(DefaultCopySpec.class) | ||
contents { | ||
exclude 'build', 'dist' | ||
} | ||
} | ||
|
||
void contents(Action<? super CopySpec> action) { | ||
contents = action | ||
} | ||
void contents(Closure closure) { | ||
contents(ConfigureUtil.configureUsing(closure)) | ||
} | ||
|
||
Action<? super CopySpec> contents() { | ||
return contents; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.