-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qipkg: refactor "compile-package" to "release-package"
Change-Id: Ic0cdde3230357e07befdd612621fe00fb1d6123f Reviewed-on: http://gerrit.aldebaran.lan/59189 Reviewed-by: gschweitzer <[email protected]> Tested-by: gschweitzer <[email protected]>
- Loading branch information
1 parent
e1b5946
commit e059c16
Showing
3 changed files
with
52 additions
and
46 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Copyright (c) 2015 Aldebaran Robotics. All rights reserved. | ||
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the COPYING file. | ||
""" Update a package by replacing python source files by their byte-code equivalent """ | ||
|
||
import os | ||
|
||
import qisys.parsers | ||
import qipkg.release | ||
|
||
|
||
def configure_parser(parser): | ||
qisys.parsers.default_parser(parser) | ||
parser.add_argument("pkg_path") | ||
parser.add_argument("-o", "--output") | ||
|
||
|
||
def do(args): | ||
pkg_path = args.pkg_path | ||
output_path = args.output | ||
if not output_path: | ||
output_path = os.path.join(os.getcwd(), os.path.basename(pkg_path)) | ||
return qipkg.release.make_release(pkg_path, output_path) |
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