Skip to content

Commit

Permalink
Internal Build Configuration
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 716398654
  • Loading branch information
cliveverghese authored and copybara-github committed Jan 19, 2025
1 parent df80593 commit c64e648
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
4 changes: 2 additions & 2 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ rules_closure_dependencies(

http_archive(
name = "build_bazel_rules_nodejs",
sha256 = "94070eff79305be05b7699207fbac5d2608054dd53e6109f7d00d923919ff45a",
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.8.2/rules_nodejs-5.8.2.tar.gz"],
sha256 = "a1295b168f183218bc88117cf00674bcd102498f294086ff58318f830dd9d9d1",
urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.8.5/rules_nodejs-5.8.5.tar.gz"],
)

load("@build_bazel_rules_nodejs//:repositories.bzl", "build_bazel_rules_nodejs_dependencies")
Expand Down
20 changes: 16 additions & 4 deletions plugin/build_pip_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,29 @@
# See the License for the specific language governing permissions and
# limitations under the License.

set +x
set -e
if [ -z "${RUNFILES}" ]; then
if [ "$(uname)" = "MSYS_NT-10.0-20348" ]; then
runfiles_dir="$(cygpath "$0")"
RUNFILES="$(CDPATH= cd -- "$runfiles_dir.runfiles" && pwd)"
build_workspace="$(cygpath "$BUILD_WORKSPACE_DIRECTORY")"
ls -l "${build_workspace}"
ls -l "${build_workspace}/bazel-out/"
echo "bazel-out: ${build_workspace}/bazel-out"
ls -l "${build_workspace}/bazel-out/x64_windows-fastbuild/"
runfiles_dir="${build_workspace}/bazel-out/x64_windows-fastbuild/"
RUNFILES="$(CDPATH= cd -- "$0.exe.runfiles" && pwd)"

dest="/c/tmp/profile-pip"
PLUGIN_RUNFILE_DIR="${RUNFILES}/org_xprof/plugin"
FRONTEND_RUNFILE_DIR="${RUNFILES}/org_xprof/frontend"
ls -l "${PLUGIN_RUNFILE_DIR}"
ls -l "${FRONTEND_RUNFILE_DIR}"
else
RUNFILES="$(CDPATH= cd -- "$0.runfiles" && pwd)"
build_workspace="$BUILD_WORKSPACE_DIRECTORY"
dest="/tmp/profile-pip"
PLUGIN_RUNFILE_DIR="${RUNFILES}/org_xprof/plugin"
FRONTEND_RUNFILE_DIR="${RUNFILES}/org_xprof/frontend"
fi
fi

Expand All @@ -35,12 +47,12 @@ else
cpio="cpio -updL"
fi

PLUGIN_RUNFILE_DIR="${RUNFILES}/org_xprof/plugin"
FRONTEND_RUNFILE_DIR="${RUNFILES}/org_xprof/frontend"


mkdir -p "$dest"
cd "$dest"

ls -l "$PLUGIN_RUNFILE_DIR"/
# Copy all necessary files for setup.
cp "$PLUGIN_RUNFILE_DIR/README.rst" .

Expand Down

0 comments on commit c64e648

Please sign in to comment.