⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 kfs_setup.py

📁 nandflash文件系统源代码
💻 PY
字号:
## $Id: kfs_setup.py 22 2007-09-25 20:09:24Z sriramsrao $## Use the distutils setup function to build and install the KFS module.# Execute this as:#  python kfs_setup.py ~/code/kfs/build/lib/ build# and this will build kfs.so in ./build/.../kfs.so# This needs to be installed /usr/lib64/python/site-packages or in an# alternate location; see COMPILING for instructions# In addition, ~/code/kfs/build/lib needs to be in the LD_LIBRARY_PATH# After installation, python apps can access kfs.#from distutils.core import setup, Extensionimport syskfs_lib_dir = sys.argv[1]del sys.argv[1]kfsext = Extension('kfs',		include_dirs = ['/home/sriram/code/kosmosfs/src/cc/'],		libraries = ['kfsClient'],		library_dirs = [kfs_lib_dir],		sources = ['KfsModulePy.cc'])setup(name = "kfs", version = "0.1",	description="KFS client module",	author="Blake Lewis",	ext_modules = [kfsext])

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -