mirror of
https://github.com/wassname/ray.git
synced 2026-06-27 18:44:07 +08:00
Set up testing and wheels for Windows on GitHub Actions (#8131)
* Move some Java tests into ci.sh * Move C++ worker tests into ci.sh * Define run() * Prepare to move Python tests into ci.sh * Fix issues in install-dependencies.sh * Reload environment for GitHub Actions * Move wheels to ci.sh and fix related issues * Don't bypass failures in install-ray.sh anymore * Make CI a little quieter * Move linting into ci.sh * Add vitals test right after build * Fix os.uname() unavailability on Windows Co-authored-by: Mehrdad <noreply@github.com>
This commit is contained in:
+7
-4
@@ -159,12 +159,15 @@ class build_ext(_build_ext.build_ext):
|
||||
source = filename
|
||||
destination = os.path.join(self.build_lib, filename)
|
||||
# Create the target directory if it doesn't already exist.
|
||||
parent_directory = os.path.dirname(destination)
|
||||
if not os.path.exists(parent_directory):
|
||||
os.makedirs(parent_directory)
|
||||
os.makedirs(os.path.dirname(destination), exist_ok=True)
|
||||
if not os.path.exists(destination):
|
||||
print("Copying {} to {}.".format(source, destination))
|
||||
shutil.copy(source, destination, follow_symlinks=True)
|
||||
if sys.platform == "win32":
|
||||
# Does not preserve file mode (needed to avoid read-only bit)
|
||||
shutil.copyfile(source, destination, follow_symlinks=True)
|
||||
else:
|
||||
# Preserves file mode (needed to copy executable bit)
|
||||
shutil.copy(source, destination, follow_symlinks=True)
|
||||
|
||||
|
||||
class BinaryDistribution(Distribution):
|
||||
|
||||
Reference in New Issue
Block a user