Skip to content

Commit

Permalink
enable long paths and do not materialize symlinks on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
kmaehashi committed Oct 19, 2023
1 parent 5614273 commit 7dffb54
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .pfnci/wheel-windows/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ $ErrorActionPreference = "Stop"
. "$PSScriptRoot\_flexci.ps1"

PrioritizeFlexCIDaemon
EnableLongPaths

function UninstallCuDNN($cuda_path) {
echo "Uninstalling cuDNN installation from ${cuda_path}"
Expand Down Expand Up @@ -55,6 +56,8 @@ echo ">> Using Branch: $branch"

# Clone CuPy and checkout the target branch
RunOrDie git clone --recursive --branch $branch --depth 1 https://github.com/cupy/cupy.git cupy
RunOrDie git -C cupy config core.symlinks true
RunOrDie git -C cupy reset --hard

# Get Cython version from configuration.
$cython_version = @(python -c "import dist_config; print(dist_config.CYTHON_VERSION)")
Expand Down
4 changes: 2 additions & 2 deletions dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ def build_linux(

# Copy source tree to working directory.
log('Copying source tree from: {}'.format(source))
shutil.copytree(source, '{}/cupy'.format(workdir))
shutil.copytree(source, '{}/cupy'.format(workdir), symlinks=True)

# Add long description file.
with open('{}/description.rst'.format(workdir), 'w') as f:
Expand Down Expand Up @@ -541,7 +541,7 @@ def build_windows(
try:
log('Using working directory: {}'.format(workdir))

# Copy source tree and NCCL to working directory.
# Copy source tree to working directory.
log('Copying source tree from: {}'.format(source))
shutil.copytree(source, '{}/cupy'.format(workdir))

Expand Down

0 comments on commit 7dffb54

Please sign in to comment.