-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Proof of concept: support compilation from tarball
Signed-off-by: Stefan Marr <[email protected]>
- Loading branch information
Showing
2 changed files
with
32 additions
and
3 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
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,27 @@ | ||
import time | ||
|
||
|
||
class TarVC(object): | ||
""" Proof of concept for building from a tarball. """ | ||
|
||
def check(self, abortOnError=True): | ||
return self | ||
|
||
def root(self, directory, abortOnError=True): | ||
# TODO: figure out how to do this without hard coding. Some meta data? | ||
if directory.endswith("/compiler"): | ||
return directory[:-len("/compiler")] | ||
if directory.endswith("/truffle"): | ||
return directory[:-len("/truffle")] | ||
if directory.endswith("/tools"): | ||
return directory[:-len("/tools")] | ||
if directory.endswith("/sdk"): | ||
return directory[:-len("/sdk")] | ||
|
||
return directory | ||
|
||
def release_version_from_tags(self, vcdir, prefix, snapshotSuffix='dev', abortOnError=True): | ||
return None | ||
|
||
def parent(self, vcdir, abortOnError=True): | ||
return 'unknown-{0}'.format(time.strftime('%Y-%m-%d_%H-%M-%S_%Z')) |