File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -248,7 +248,11 @@ def _generate_sagemaker_sdk_tar(destination_folder):
248
248
"""
249
249
Run setup.py sdist to generate the PySDK tar file
250
250
"""
251
- subprocess .run (f"python3 setup.py sdist -d { destination_folder } " , shell = True )
251
+ subprocess .run (
252
+ f"python3 setup.py egg_info --egg-base { destination_folder } sdist -d { destination_folder } -k" ,
253
+ shell = True ,
254
+ check = True ,
255
+ )
252
256
destination_folder_contents = os .listdir (destination_folder )
253
257
source_archive = [file for file in destination_folder_contents if file .endswith ("tar.gz" )][0 ]
254
258
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ def tempdir():
155
155
@pytest .fixture (scope = "module" )
156
156
def dev_sdk_tar ():
157
157
resource_dir = os .path .join (DATA_DIR , "experiment" )
158
- os .system ("python setup.py sdist" )
158
+ os .system ("python setup.py sdist -k " )
159
159
sdist_path = max (glob .glob ("dist/sagemaker-*" ), key = os .path .getctime )
160
160
sdk_file = os .path .join (resource_dir , _EXP_PLUS_SDK_TAR )
161
161
shutil .copy (sdist_path , sdk_file )
You can’t perform that action at this time.
0 commit comments