Skip to content

Commit

Permalink
Build for linux_x86_64 only
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Chang <[email protected]>
  • Loading branch information
mocsharp committed Dec 7, 2024
1 parent 27e6301 commit f5135ab
Show file tree
Hide file tree
Showing 4 changed files with 98 additions and 64 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ docs/_build/
# PyBuilder
.pybuilder/
target/
setup.py

# Jupyter Notebook
.ipynb_checkpoints
Expand Down
29 changes: 29 additions & 0 deletions build.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import setuptools


def build(setup_kwargs):
# Run targeted build separately as poetry does not support target builds yet
try:
setuptools.setup(
**setup_kwargs,
script_args=["bdist_wheel"],
options={
"bdist_wheel": {"plat_name": "linux_x86_64"},
},
)
except Exception:
print("Error building targeted wheel")
Loading

0 comments on commit f5135ab

Please sign in to comment.