praiskup / argparse-manpage

Automatically build man-pages for your Python project
Apache License 2.0
40 stars 22 forks source link

no such file or directory #107

Open jedwards4b opened 5 months ago

jedwards4b commented 5 months ago

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 commented 4 months ago

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?