-
Notifications
You must be signed in to change notification settings - Fork 132
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
Add Freebsd support #1187
base: master
Are you sure you want to change the base?
Add Freebsd support #1187
Changes from 4 commits
acadb25
aad4f8a
b5013b2
71d325a
ce28666
cc1494d
aaa7d32
759afd1
7edd1eb
ca5c684
2b83e8b
907878f
62e2d9b
c694bcb
c591266
d07cfe3
007a0d3
e5eb2b3
c91eb79
75d47e7
d8b57a1
5fd24c0
2963e3d
ccc18dc
1b98d66
f96069f
b2bbcfb
3bb9317
48a4759
c741b4e
64494dd
e5582b2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
from setuptools import setup, find_packages | ||
import nipapwww | ||
import nipapwww, sys | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. multiple imports on one line |
||
|
||
if sys.platform.startswith('freebsd'): | ||
localbase = '/usr/local' | ||
etcdir = localbase + '/etc' | ||
else: | ||
localbase = '/usr' | ||
etcdir = '/etc' | ||
|
||
setup( | ||
name='nipap-www', | ||
|
@@ -21,8 +28,8 @@ | |
test_suite='nose.collector', | ||
package_data={'nipapwww': ['i18n/*/LC_MESSAGES/*.mo']}, | ||
data_files = [ | ||
( '/etc/nipap/', [ 'nipap-www.ini', ] ), | ||
( '/etc/nipap/www', [ 'nipap-www.wsgi', ] ), | ||
( etcdir + '/nipap/', [ 'nipap-www.ini', ] ), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. whitespace after '(' |
||
( etcdir + '/nipap/www', [ 'nipap-www.wsgi', ] ), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. whitespace after '(' |
||
( '/var/cache/nipap-www/', [] ) | ||
], | ||
#message_extractors={'nipapwww': [ | ||
|
@@ -38,3 +45,4 @@ | |
main = pylons.util:PylonsInstaller | ||
""", | ||
) | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. blank line at end of file |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/python | ||
#!/usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
|
||
from itertools import izip_longest | ||
|
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.
line too long (80 > 79 characters)