File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -63,17 +63,18 @@ def finalize_options(self):
63
63
if self .egg_path is None :
64
64
self .egg_path = os .path .abspath (ei .egg_base )
65
65
66
- egg_path = os .path .join (self .install_dir , self .egg_path )
67
- if not _path .same_path (egg_path , self .egg_base ):
66
+ target = _path .normpath (self .egg_base )
67
+ egg_path = _path .normpath (os .path .join (self .install_dir , self .egg_path ))
68
+ if egg_path != target :
68
69
raise DistutilsOptionError (
69
70
"--egg-path must be a relative path from the install"
70
- f " directory to { self . egg_base } "
71
+ " directory to " + target
71
72
)
72
73
73
74
# Make a distribution for the package's source
74
75
self .dist = pkg_resources .Distribution (
75
- self . egg_base ,
76
- pkg_resources .PathMetadata (self . egg_base , os .path .abspath (ei .egg_info )),
76
+ target ,
77
+ pkg_resources .PathMetadata (target , os .path .abspath (ei .egg_info )),
77
78
project_name = ei .egg_name ,
78
79
)
79
80
You can’t perform that action at this time.
0 commit comments