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

Fix setup.py to remove the double '/' when building man pages. #96

Closed
wants to merge 1 commit into from
Closed

Conversation

woodsb02
Copy link
Contributor

@woodsb02 woodsb02 commented Feb 7, 2016

This was resulting in 'share/man//...' showing in the file list generated for system packages.

…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'
Copy link
Contributor

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.

Copy link
Contributor

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

Copy link
Contributor

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?

@dsblank
Copy link
Member

dsblank commented Feb 23, 2016

Yes, using path.join() makes sense. Thanks!

@Nick-Hall
Copy link
Member

Be careful. The distutils package requires some paths to be in Unix form.

@Paul-Franklin
Copy link
Contributor

@uxcq Just out of curiosity, how do you "build" manpages on Windows?
(I vaguely recall setup.py having a test to disable that if it is being run on Windows.)

@sam-m888
Copy link
Member

sam-m888 commented Mar 3, 2016

@uxcq @Paul-Franklin On windows you only need to change to the /docs/ directory and run the make.bat file eg: make.bat html

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!

@Paul-Franklin
Copy link
Contributor

@sam-m888 It seems we are talking about different conditions. I think
you are talking about a git-downloaded gramps source tree which happens
to be on Windows. I was referring to a Windows AIO installation, which
does have setup.py but I don't think any "docs" folder (or manpages).

uqs pushed a commit to freebsd/freebsd-ports that referenced this pull request May 19, 2016
- 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
uqs pushed a commit to freebsd/freebsd-ports that referenced this pull request May 19, 2016
- 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
@dsblank
Copy link
Member

dsblank commented May 24, 2016

Is this ready to commit?

@Nick-Hall
Copy link
Member

Tested, rebased, tidied up the commit message and merged in commit 7851d3b.

@Nick-Hall Nick-Hall closed this May 24, 2016
vores8 pushed a commit to vores8/gramps that referenced this pull request Jan 31, 2023
svmhdvn pushed a commit to svmhdvn/freebsd-ports that referenced this pull request Jan 10, 2024
- 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
7 participants