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

add sources to pypi #91

Open
shlomow opened this issue Apr 13, 2019 · 9 comments
Open

add sources to pypi #91

shlomow opened this issue Apr 13, 2019 · 9 comments

Comments

@shlomow
Copy link

shlomow commented Apr 13, 2019

Hi!

Can you please upload the source ti pypi server in addition to the wheel files? It can be useful for some use cases. Thanks in advance!

Btw, if I am trying to install the source from the releases the tab I am getting en error when building the package. I am using win10.

@flit
Copy link
Member

flit commented Apr 13, 2019

What error do you get when building?

@shlomow
Copy link
Author

shlomow commented Apr 14, 2019

@flit This is the output:

Installing collected packages: milksnake, cmsis-pack-manager
  Running setup.py install for cmsis-pack-manager ... error
    Complete output from command c:\users\shlomi\appdata\local\programs\python\python37\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\shlomi\\AppData\\Local\\Temp\\pip-req-build-qa6pp_wp\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\shlomi\AppData\Local\Temp\pip-record-mbx2ps5x\install-record.txt --single-version-externally-managed --compile:
    fatal: not a git repository (or any of the parent directories): .git
    running install
    running build
    running build_py
    creating build\lib
    creating build\lib\cmsis_pack_manager
    copying cmsis_pack_manager\pack_manager.py -> build\lib\cmsis_pack_manager
    copying cmsis_pack_manager\__init__.py -> build\lib\cmsis_pack_manager
    error: [WinError 2] The system cannot find the file specified

    ----------------------------------------
Command "c:\users\shlomi\appdata\local\programs\python\python37\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\shlomi\\AppData\\Local\\Temp\\pip-req-build-qa6pp_wp\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\shlomi\AppData\Local\Temp\pip-record-mbx2ps5x\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\shlomi\AppData\Local\Temp\pip-req-build-qa6pp_wp\

@flit
Copy link
Member

flit commented Apr 18, 2019

I'm not sure what that error could be caused by since it doesn't say what file could not be found. Do you have Rust installed? It could be complaining about not finding the cargo tool.

@cederom
Copy link

cederom commented Apr 28, 2019

Hello @flit :-) I was about to write the same issue / question - could you please provide source package to pip/pypi ? At the moment only binary packages are provided. This package seems a mandatory requirement of mbed-os. On FreeBSD this package is unavailable, so using mbed-os is not possible. Having source package at pypi would make it possible to compile the dependency during pip install :-)

I have started a separate issue on FreeBSD build problem: #97

@theotherjimmy
Copy link
Collaborator

@shlomow The reason that I don't upload source packages is because they are not immediately usable on every platform without an installation of rustc + cargo. Uploading the source could cause pip to try to download and run cargo (giving you the error you described) on these systems.

@cederom
Copy link

cederom commented May 7, 2019

Hey there @theotherjimmy :-) Binary only distribution limits usage of CMSIS Pack Manager to provided platforms - for instance I cannot use it at all on FreeBSD..

So you are the author of CPM? Can we work out the build automation please? I am eager to help :-)

@theotherjimmy
Copy link
Collaborator

@cederom I forgot to respond here. Yes, I'm the author; Yes we can work out build automation for more platforms. I don't know of a service that would be able to provide me with a way to build binary wheels for freebsd.

@cederom
Copy link

cederom commented May 31, 2019

Hey @theotherjimmy, this is some old thread, the work is already done in #97, build well, just need to add source package to pypi (#112) and thing should work with some local os dependencies for build (such as Rust) :-)

@theotherjimmy
Copy link
Collaborator

I actually din this yesterday, but the source packages contain a bug. I'll close this issue when I can get a working 0.2.x release of CPM with source that installs as the same release version.

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

No branches or pull requests

4 participants