forked from sonic-net/sonic-buildimage
-
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.
Support building sonic-utilities as a Python wheel package instead of…
… a Debian package (sonic-net#1122) Support building sonic-utilities as a Python wheel package rather than a Debian package. Notes: - Wheel packaging restricts the installation of files to within the dist-packages directory. Thus, we cannot install data files to system directories. Therefore, I am building a separate 'sonic-utilities-data' package for installing the data files (bash_completion, templates) - Wheel packages install scripts/entrypoints to the /usr/local/bin directory, whereas Debian packages install to /usr/bin
- Loading branch information
Showing
37 changed files
with
114 additions
and
35 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 |
---|---|---|
@@ -1,7 +1,28 @@ | ||
# Compiled Python files | ||
*.pyc | ||
scripts/aclshowc | ||
scripts/neighbor_advertiserc | ||
scripts/port2aliasc | ||
|
||
# Generated by packaging | ||
*.egg-info/ | ||
.eggs/ | ||
build/ | ||
deb_dist/ | ||
dist/ | ||
*.egg-info/ | ||
*.pyc | ||
.cache | ||
*.tar.gz | ||
|
||
# Unit test coverage | ||
.coverage | ||
coverage.xml | ||
htmlcov/ | ||
|
||
# Ignores for sonic-utilities-data | ||
sonic-utilities-data/debian/* | ||
!sonic-utilities-data/debian/changelog | ||
!sonic-utilities-data/debian/compat | ||
!sonic-utilities-data/debian/control | ||
!sonic-utilities-data/debian/copyright | ||
!sonic-utilities-data/debian/install | ||
!sonic-utilities-data/debian/rules | ||
sonic-utilities-data_*.deb | ||
sonic-utilities-data_*.buildinfo | ||
sonic-utilities-data_*.changes |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Copyright (C) 2020 Microsoft | ||
|
||
This program is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU General Public License | ||
as published by the Free Software Foundation; either version 2 | ||
of the License, or (at your option) any later version. | ||
|
||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
|
||
You should have received a copy of the GNU General Public License | ||
along with this program; if not, write to the Free Software | ||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
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,7 @@ | ||
# This file describes the maintainers for sonic-device-data | ||
# See the SONiC project governance document for more information | ||
|
||
Name = "Joe LeVeque" | ||
Email = "jolevequ@microsoft.com" | ||
Github = jleveque | ||
Mailinglist = sonicproject@googlegroups.com |
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,19 @@ | ||
# sonic-utilities-data | ||
Data files required for SONiC command line utilities | ||
|
||
|
||
## To build | ||
|
||
``` | ||
dpkg-buildpackage -rfakeroot -b -us -uc | ||
``` | ||
|
||
## To clean | ||
|
||
``` | ||
dpkg-buildpackage -rfakeroot -Tclean | ||
``` | ||
|
||
--- | ||
|
||
See the [SONiC Website](http://azure.github.io/SONiC/) for more information about the SONiC project. |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,5 @@ | ||
sonic-utilities-data (1.0-1) UNRELEASED; urgency=low | ||
|
||
* Initial release | ||
|
||
-- Joe LeVeque <jolevequ@microsoft.com> Thu, 17 Sep 2020 01:48:49 +0000 |
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 @@ | ||
9 |
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,11 @@ | ||
Source: sonic-utilities-data | ||
Maintainer: Joe LeVeque <jolevequ@microsoft.com> | ||
Section: misc | ||
Priority: optional | ||
Standards-Version: 0.1 | ||
Build-Depends: debhelper (>=9) | ||
|
||
Package: sonic-utilities-data | ||
Architecture: all | ||
Depends: ${misc:Depends} bash-completion | ||
Description: Data files required for SONiC command line utilities |
Empty file.
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,2 @@ | ||
bash_completion.d/ /etc/ | ||
templates/*.j2 /usr/share/sonic/templates/ |
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,6 @@ | ||
#!/usr/bin/make -f | ||
|
||
build: | ||
|
||
%: | ||
dh $@ |
File renamed without changes.