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
support pip installation #52
Comments
How are you building with pip? I do |
I know, but that only runs
|
I think we need to fix |
I'll have look at sdist. |
That is how it was done originally :) |
yes, I do remember. |
Thinking about it more, I think it shouldn’t harm to move the setup.py file to the top level directory, and leave the C file where it is, if it will simplify things. |
It would definitely make the Python extension's setup much easier. On Tue, Mar 31, 2015 at 8:42 AM, Khaled Hosny notifications@github.com
|
If it involves just the setup.py file, it should be ok to have it in the top-level directory. |
I can confirm pip is happy after 5e3e97e |
there is a problem if one tries to build the Python extension using the
pip
installer. The problem is that the setup.py is not located in the root of the repository, but in thepython
binding subfolder. The way pip works is to copy the source files to a temporary folder and try to build from there. But since the C/C++ source files are located higher in the repository tree (../enc
,../dec
) relative to setup.py, then pip does not (cannot?) copy these over to its temporary build folder, and therefore it fails to build the extension.A solution would be to make a hard copy (instead of a symlink) of the
enc
anddec
folders inside thepython
subfolder. I believe git can efficiently handle such duplicate files and store them under the same object, as long as they have the same content.That means one would have to synchronise it every time there is a change. I don't know if anyone has a better solution...
The reason I want to use pip is to allow publishing the Brotli extension to the official Python Package Index (PyPI) repository. Once that is done, one could simply do
pip install brotli
to download, build and install the extension. Besides, one could add brotli to the list of dependencies for other packages (e.g. fontTools, etc.).I wonder whether @khaledhosny has already thought about publishing the Brotli extension to PyPI?
I'm already experimenting in this direction in https://github.com/anthrotype/brotli-wheels
I'm trying to use Travis and Appveyor to automatically build pre-compiled Python wheel packages for Windows and OS X.
Please let me know what you think.
Thank you,
Cosimo
The text was updated successfully, but these errors were encountered: