mirror of
				https://github.com/msgpack/msgpack-python.git
				synced 2025-10-31 17:40:54 +00:00 
			
		
		
		
	Fix setup.py sdist doesn't generates c++ source.
This commit is contained in:
		
							parent
							
								
									59c8b51e5b
								
							
						
					
					
						commit
						bf4124f592
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		
							
								
								
									
										5
									
								
								setup.py
									
										
									
									
									
								
							
							
						
						
									
										5
									
								
								setup.py
									
										
									
									
									
								
							|  | @ -32,9 +32,10 @@ if have_cython: | ||||||
| 
 | 
 | ||||||
|     class Sdist(sdist): |     class Sdist(sdist): | ||||||
|         def __init__(self, *args, **kwargs): |         def __init__(self, *args, **kwargs): | ||||||
|  |             cy_opt = cython_compiler.default_options.copy() | ||||||
|  |             cy_opt['cplus'] = True | ||||||
|             for src in glob('msgpack/*.pyx'): |             for src in glob('msgpack/*.pyx'): | ||||||
|                 cython_compiler.compile(glob('msgpack/*.pyx'), |                 cython_compiler.compile(glob('msgpack/*.pyx'), cy_opt) | ||||||
|                                         cython_compiler.default_options) |  | ||||||
|             sdist.__init__(self, *args, **kwargs) |             sdist.__init__(self, *args, **kwargs) | ||||||
| else: | else: | ||||||
|     sources = ['msgpack/_msgpack.cpp'] |     sources = ['msgpack/_msgpack.cpp'] | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 INADA Naoki
						INADA Naoki