mirror of
				https://github.com/YosysHQ/yosys
				synced 2025-10-31 11:42:30 +00:00 
			
		
		
		
	Revert #4901
Partially reverts commit 9c5bffcf93.
The reasoning behind this is that setup.py is intended to strictly consume the Makefile and not be consumed by it. The attempt at using them recursively has caused a number of issues and has rendered Pyosys unusable to some users: See https://github.com/YosysHQ/yosys/issues/5012
Additionally, unlike the previous pyosys installation target, the wheel installation does not respect PREFIX=, only venvs.
For installation inside a venv, the intended method should remain a user manually executing `pip3 install .` instead of relying on the Makefile.
			
			
This commit is contained in:
		
							parent
							
								
									2bc2105d82
								
							
						
					
					
						commit
						c18f1310a5
					
				
					 3 changed files with 11 additions and 26 deletions
				
			
		
							
								
								
									
										5
									
								
								setup.py
									
										
									
									
									
								
							
							
						
						
									
										5
									
								
								setup.py
									
										
									
									
									
								
							|  | @ -40,8 +40,6 @@ class libyosys_so_ext(Extension): | |||
|         ) | ||||
|         self.args = [ | ||||
|             "ENABLE_PYOSYS=1", | ||||
|             # Prevent recursive wheel build | ||||
|             "ENABLE_WHEEL=0", | ||||
|             # Would need to be installed separately by the user | ||||
|             "ENABLE_TCL=0", | ||||
|             "ENABLE_READLINE=0", | ||||
|  | @ -87,9 +85,6 @@ class libyosys_so_ext(Extension): | |||
| 
 | ||||
|         shutil.copytree("share", share_target) | ||||
| 
 | ||||
|         # I don't know how debug info is getting here. | ||||
| 
 | ||||
| 
 | ||||
| class custom_build_ext(build_ext): | ||||
|     def build_extension(self, ext) -> None: | ||||
|         if not hasattr(ext, "custom_build"): | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue