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

no such file or directory #107

Open
jedwards4b opened this issue Jan 31, 2024 · 1 comment
Open

no such file or directory #107

jedwards4b opened this issue Jan 31, 2024 · 1 comment

Comments

@jedwards4b
Copy link

jedwards4b commented Jan 31, 2024

In setup.py I've added:

from build_manpages import build_manpages, get_build_py_cmd, get_install_cmd

   cmdclass={
      'build_manpages': build_manpages,
      # Re-define build_py and install commands so the manual pages
      # are automatically re-generated and installed
      'build_py': get_build_py_cmd(),
      'install': get_install_cmd(),
  }

In setup.cfg

[build_manpages]
manpages =
    man/git-fleximod.1:object=parser:pyfile=bin/git-fleximod

then I run

PYTHONPATH=/glade/work/jedwards/conda-envs/fleximod/lib/python3.12/site-packages/ python -m build

and it does all of the other stuff but not the manpages:

running bdist_wheel
running build
running build_py
running build_manpages
generating man/git-fleximod.1
error: [Errno 2] No such file or directory: '/glade/derecho/scratch/jedwards/tmp/build-via-sdist-wn14g6tq/fleximod-0.2.0/bin/git-fleximod'

ERROR Backend subproccess exited when trying to invoke build_wheel

help appreciated.

@praiskup
Copy link
Owner

praiskup commented Mar 8, 2024

Hello @jedwards4b

error: [Errno 2] No such file or directory: '/glade/derecho/scratch/jedwards/tmp/build-via-sdist-wn14g6tq/fleximod-0.2.0/bin/git-fleximod'

This seems like a valid concern, the manpage generator fails to open the git-fleximod script, the question is why is that? Is it extracted/installed somewhere else?

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

2 participants