mirror of
				https://github.com/msgpack/msgpack-python.git
				synced 2025-11-04 03:20:56 +00:00 
			
		
		
		
	Make msgpack package instead of module. and using Cython in setup script.
This commit is contained in:
		
						commit
						fcc775e4cc
					
				
					 7 changed files with 11 additions and 3445 deletions
				
			
		
							
								
								
									
										4
									
								
								MANIFEST
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								MANIFEST
									
										
									
									
									
								
							| 
						 | 
					@ -1,7 +1,7 @@
 | 
				
			||||||
msgpack.cpp
 | 
					msgpack.cpp
 | 
				
			||||||
setup.py
 | 
					setup.py
 | 
				
			||||||
pack.h
 | 
					msgpack/pack.h
 | 
				
			||||||
unpack.h
 | 
					msgpack/unpack.h
 | 
				
			||||||
include/msgpack/pack_define.h
 | 
					include/msgpack/pack_define.h
 | 
				
			||||||
include/msgpack/pack_template.h
 | 
					include/msgpack/pack_template.h
 | 
				
			||||||
include/msgpack/unpack_define.h
 | 
					include/msgpack/unpack_define.h
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
							
								
								
									
										3440
									
								
								msgpack.cpp
									
										
									
									
									
								
							
							
						
						
									
										3440
									
								
								msgpack.cpp
									
										
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load diff
											
										
									
								
							
							
								
								
									
										3
									
								
								msgpack/__init__.py
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								msgpack/__init__.py
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,3 @@
 | 
				
			||||||
 | 
					# coding: utf-8
 | 
				
			||||||
 | 
					from _msgpack import *
 | 
				
			||||||
 | 
					
 | 
				
			||||||
							
								
								
									
										9
									
								
								setup.py
									
										
									
									
									
								
							
							
						
						
									
										9
									
								
								setup.py
									
										
									
									
									
								
							| 
						 | 
					@ -1,12 +1,14 @@
 | 
				
			||||||
from distutils.core import setup, Extension
 | 
					from distutils.core import setup, Extension
 | 
				
			||||||
 | 
					from Cython.Distutils import build_ext
 | 
				
			||||||
import os
 | 
					import os
 | 
				
			||||||
 | 
					
 | 
				
			||||||
version = '0.0.1'
 | 
					version = '0.0.1dev'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
PACKAGE_ROOT = os.getcwdu()
 | 
					PACKAGE_ROOT = os.getcwdu()
 | 
				
			||||||
INCLUDE_PATH = os.path.join(PACKAGE_ROOT, 'include')
 | 
					INCLUDE_PATH = os.path.join(PACKAGE_ROOT, 'include')
 | 
				
			||||||
msgpack_mod = Extension('msgpack',
 | 
					msgpack_mod = Extension('msgpack._msgpack',
 | 
				
			||||||
                        sources=['msgpack.cpp'],
 | 
					                        language="c++",
 | 
				
			||||||
 | 
					                        sources=['msgpack/_msgpack.pyx'],
 | 
				
			||||||
                        include_dirs=[INCLUDE_PATH])
 | 
					                        include_dirs=[INCLUDE_PATH])
 | 
				
			||||||
 | 
					
 | 
				
			||||||
desc = 'MessagePack serializer/desirializer.'
 | 
					desc = 'MessagePack serializer/desirializer.'
 | 
				
			||||||
| 
						 | 
					@ -28,6 +30,7 @@ setup(name='msgpack',
 | 
				
			||||||
      author='Naoki INADA',
 | 
					      author='Naoki INADA',
 | 
				
			||||||
      author_email='songofacandy@gmail.com',
 | 
					      author_email='songofacandy@gmail.com',
 | 
				
			||||||
      version=version,
 | 
					      version=version,
 | 
				
			||||||
 | 
					      cmdclass={'build_ext': build_ext},
 | 
				
			||||||
      ext_modules=[msgpack_mod],
 | 
					      ext_modules=[msgpack_mod],
 | 
				
			||||||
      description=desc,
 | 
					      description=desc,
 | 
				
			||||||
      long_description=long_desc,
 | 
					      long_description=long_desc,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue