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
Fix setup.py to remove the double '/' when building man pages. #96
Conversation
…as resulting in 'share/man//...' showing in the file list generated for system packages.
src = build_cmd.build_base + '/data/man/' + lang + '/gramps.1.gz' | ||
target = 'share/man/' + lang + '/man1' | ||
src = build_cmd.build_base + '/data/man' + lang + '/gramps.1.gz' | ||
target = 'share/man' + lang + '/man1' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be better to use os.path.join
, though I guess man pages will not be built on Windows, anyway.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes they have been built on windows by me and by the looks of it others.
fdb8704 Update Sphinx files - includes make.bat for windows
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In that case, it makes even more sense to use os.path.join
to use the right path separators, right?
Yes, using path.join() makes sense. Thanks! |
Be careful. The distutils package requires some paths to be in Unix form. |
@uxcq Just out of curiosity, how do you "build" manpages on Windows? |
@uxcq @Paul-Franklin On windows you only need to change to the /docs/ directory and run the make.bat file eg: On master this currently spits out about 83 warnings, but it does complete. @Paul-Franklin Your right was thinking Sphinix Gramps API documents and not manpages! |
@sam-m888 It seems we are talking about different conditions. I think |
- Take maintainership - Convert to USE_GITHUB (new location of main upstream repository) - Update dependencies for new version (namely python 3.2+ and GTK3) [1] - Convert "strongly recommended" options to dependencies (removing option) [1] - Add "optional" dependencies as OPTIONS [1] - Remove pkg-plist and convert build to USE_PYTHON=autoplist distutils - Remove pre-extract upgrade warning as it is ineffective for pkg upgrades and now only applies for systems which have not been upgraded in 1.5 years. - Add post-stage hack to fix staging support, copied from Arch Linux [2] - Delete files/patch-src_gramps.py as the offending file has been removed - Add files/patch-setup.py to allow "--single-version-externally-managed" [3] - Add files/patch-setup.py to fix double slashes in generated by autoplist [4] Changes: https://github.com/gramps-project/gramps/blob/v4.2.3/NEWS [1] https://github.com/gramps-project/gramps/blob/v4.2.3/README [2] https://projects.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/gramps&id=ee1c7fae15872481d8f55868f4211efcbce15314 [3] gramps-project/gramps@ab67c78 [4] gramps-project/gramps#96 PR: 207005 Reviewed by: mat (mentor) Approved by: adamw (mentor) Differential Revision: https://reviews.freebsd.org/D6439 git-svn-id: svn+ssh://svn.freebsd.org/ports/head@415529 35697150-7ecd-e111-bb59-0022644237b5
- Take maintainership - Convert to USE_GITHUB (new location of main upstream repository) - Update dependencies for new version (namely python 3.2+ and GTK3) [1] - Convert "strongly recommended" options to dependencies (removing option) [1] - Add "optional" dependencies as OPTIONS [1] - Remove pkg-plist and convert build to USE_PYTHON=autoplist distutils - Remove pre-extract upgrade warning as it is ineffective for pkg upgrades and now only applies for systems which have not been upgraded in 1.5 years. - Add post-stage hack to fix staging support, copied from Arch Linux [2] - Delete files/patch-src_gramps.py as the offending file has been removed - Add files/patch-setup.py to allow "--single-version-externally-managed" [3] - Add files/patch-setup.py to fix double slashes in generated by autoplist [4] Changes: https://github.com/gramps-project/gramps/blob/v4.2.3/NEWS [1] https://github.com/gramps-project/gramps/blob/v4.2.3/README [2] https://projects.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/gramps&id=ee1c7fae15872481d8f55868f4211efcbce15314 [3] gramps-project/gramps@ab67c78 [4] gramps-project/gramps#96 PR: 207005 Reviewed by: mat (mentor) Approved by: adamw (mentor) Differential Revision: https://reviews.freebsd.org/D6439
Is this ready to commit? |
Tested, rebased, tidied up the commit message and merged in commit 7851d3b. |
- Take maintainership - Convert to USE_GITHUB (new location of main upstream repository) - Update dependencies for new version (namely python 3.2+ and GTK3) [1] - Convert "strongly recommended" options to dependencies (removing option) [1] - Add "optional" dependencies as OPTIONS [1] - Remove pkg-plist and convert build to USE_PYTHON=autoplist distutils - Remove pre-extract upgrade warning as it is ineffective for pkg upgrades and now only applies for systems which have not been upgraded in 1.5 years. - Add post-stage hack to fix staging support, copied from Arch Linux [2] - Delete files/patch-src_gramps.py as the offending file has been removed - Add files/patch-setup.py to allow "--single-version-externally-managed" [3] - Add files/patch-setup.py to fix double slashes in generated by autoplist [4] Changes: https://github.com/gramps-project/gramps/blob/v4.2.3/NEWS [1] https://github.com/gramps-project/gramps/blob/v4.2.3/README [2] https://projects.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/gramps&id=ee1c7fae15872481d8f55868f4211efcbce15314 [3] gramps-project/gramps@ab67c78 [4] gramps-project/gramps#96 PR: 207005 Reviewed by: mat (mentor) Approved by: adamw (mentor) Differential Revision: https://reviews.freebsd.org/D6439
This was resulting in 'share/man//...' showing in the file list generated for system packages.