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

Installation fails with py312 #61

Closed
ssbarnea opened this issue Nov 23, 2023 · 1 comment · Fixed by #69
Closed

Installation fails with py312 #61

ssbarnea opened this issue Nov 23, 2023 · 1 comment · Fixed by #69
Labels
bug Something isn't working

Comments

@ssbarnea
Copy link
Member

I am getting the following error while using pip4a to install collection in editable mode, I am getting the following error. For those of you who have already used this tool, any clue why this is happening?

(venv) ➜  testname git:(main) ✗ pip4a install -e .
Critical: Failed to copy collection to build directory: Command 'cp -r --parents
          $(git ls-files 2> /dev/null || ls)
          /Users/prsahoo/.virtualenvs/creator/.pip4a/testns.testname/build'
          returned non-zero exit status 64. cp: illegal option -- -
          usage: cp [-R [-H | -L | -P]] [-fi | -n] [-aclpSsvXx] source_file
          target_file
                 cp [-R [-H | -L | -P]] [-fi | -n] [-aclpSsvXx] source_file ...
          target_directory
@ssbarnea ssbarnea added the bug Something isn't working label Nov 23, 2023
@ssbarnea
Copy link
Member Author

This bug is specific to macos and happens because we mistakenly used the --parents option on cp which is not available under BSD.

We need to switch to use of shutil.copytree() instead and also enable macos testing pipelines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant