mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-10-30 23:47:31 +03:00 
			
		
		
		
	Remove #egg from download URLs (#12567)
The current URLs will become invalid in pip 25.0. According to the pip docs, the egg= URLs are currently only needed for editable VCS installs.
This commit is contained in:
		
							parent
							
								
									4e1db35f6e
								
							
						
					
					
						commit
						42e5043816
					
				|  | @ -81,11 +81,8 @@ def download( | |||
| 
 | ||||
| def get_model_filename(model_name: str, version: str, sdist: bool = False) -> str: | ||||
|     dl_tpl = "{m}-{v}/{m}-{v}{s}" | ||||
|     egg_tpl = "#egg={m}=={v}" | ||||
|     suffix = SDIST_SUFFIX if sdist else WHEEL_SUFFIX | ||||
|     filename = dl_tpl.format(m=model_name, v=version, s=suffix) | ||||
|     if sdist: | ||||
|         filename += egg_tpl.format(m=model_name, v=version) | ||||
|     return filename | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user