Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Put files to platlib #5396

Merged
merged 2 commits into from
Nov 6, 2017
Merged

Put files to platlib #5396

merged 2 commits into from
Nov 6, 2017

Conversation

typhoonzero
Copy link
Contributor

Fix #5392

@typhoonzero typhoonzero requested a review from luotao1 November 6, 2017 08:31
Copy link
Contributor

@luotao1 luotao1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

补充一些comment,方便更好的理解:

  1. https://www.python.org/dev/peps/pep-0427/#what-s-the-deal-with-purelib-vs-platlib: For example, Fedora installs pure Python packages to '/usr/lib/pythonX.Y/site-packages' and platform dependent packages to '/usr/lib64/pythonX.Y/site-packages'. 意思是说:python文件和平台依赖的文件,比如so,要分开装?

差不多,包含so的python包,都是和运行时环境相关的,所以要区别开。没有ext_modules那个参数,python会认为是纯py的包了

  1. 包含so的python包,现在是装到哪儿了

安装的位置,根据不同的系统应该是不同的。但只要在生成whl包的时候,放到platlib就能被识别

@luotao1 luotao1 merged commit 7c551fb into PaddlePaddle:develop Nov 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants