Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
517 views
in Technique[技术] by (71.8m points)

setuptools - where does python CMake Extension subdirectory build/lib.system name comes from?

I'm trying to find out how the name/directory build/lib.system is chosen/created within a distutils(setuptools) python build process...

when i build dlib python module from source using python3 setup.py build i can see the following

build/
├── bdist.linux-aarch64
├── CMakeCache.txt
├── CMakeFiles
├── lib.linux-aarch64-3.8
└── temp.linux-aarch64-3.8```

reading at the official documentation in 4.1 says:

Depending on the system, the module file will end up in a subdirectory build/lib.system...


It's not clear to me where does lib.${system} comes from and if i can configure it using a class extension argument or it is a -DCMAKE_VARIABLE?

I'm using setuptools instead of distutils but for now it looks like the documentation in this subject is the same.

Please any help will be appreciated also, if anybody knows which is the path of the source code for class Extension will be very helpfull.

thanks!!

question from:https://stackoverflow.com/questions/65898022/where-does-python-cmake-extension-subdirectory-build-lib-system-name-comes-from

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...