Skip to content

Commit

Permalink
Merge pull request #59 from kallisti5/master
Browse files Browse the repository at this point in the history
Fixes for python 3 environments, add ArchLinux notes to readme. Thanks kallisti5 for this work!
  • Loading branch information
skinkie committed Jan 17, 2013
2 parents 02f0759 + 97c1b2e commit 273575c
Show file tree
Hide file tree
Showing 15 changed files with 18 additions and 14 deletions.
4 changes: 4 additions & 0 deletions README.rst
Expand Up @@ -22,6 +22,10 @@ or, for Yum-based systems, such as RedHat, CentOS or Fedora::


sudo yum install autoconf automake libtool sudo yum install autoconf automake libtool


or, for Pacman-based systems such as ArchLinux::

sudo pacman -Sy autoconf automake libtool

To check out the code from GitHub, including all dependencies that are To check out the code from GitHub, including all dependencies that are
specified as Git submodules, do the following:: specified as Git submodules, do the following::


Expand Down
2 changes: 1 addition & 1 deletion admin/server.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python2


# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# #
Expand Down
2 changes: 1 addition & 1 deletion admin/upgrade_config.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python2


# Cherokee CLI configuration conversion # Cherokee CLI configuration conversion
# #
Expand Down
2 changes: 1 addition & 1 deletion cherokee/cherokee-admin-launcher
@@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python2


# -*- coding: utf-8; mode: python -*- # -*- coding: utf-8; mode: python -*-
# #
Expand Down
2 changes: 1 addition & 1 deletion cherokee/cherokee-tweak
@@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python2


# -*- coding: utf-8; mode: python -*- # -*- coding: utf-8; mode: python -*-
# #
Expand Down
2 changes: 1 addition & 1 deletion cherokee/main_admin.c
Expand Up @@ -554,7 +554,7 @@ check_for_python (void)
int re; int re;
pid_t pid; pid_t pid;
int exitcode = -1; int exitcode = -1;
char const *args[] = {"env", "python", "-c", "raise SystemExit", NULL}; char const *args[] = {"env", "python2", "-c", "raise SystemExit", NULL};


pid = fork(); pid = fork();
if (pid == -1) { if (pid == -1) {
Expand Down
2 changes: 1 addition & 1 deletion contrib/tracelor.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python2


## ##
## Cherokee trace colorizer ## Cherokee trace colorizer
Expand Down
2 changes: 1 addition & 1 deletion doc/build/asciidoc.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python2
""" """
asciidoc - converts an AsciiDoc text file to DocBook, HTML or LinuxDoc asciidoc - converts an AsciiDoc text file to DocBook, HTML or LinuxDoc
Expand Down
2 changes: 1 addition & 1 deletion doc/cookbook_dbslayer.txt
Expand Up @@ -218,7 +218,7 @@ the server name and prepare a database accessible with the parameters
detailed above (database name, user parameters and so on). detailed above (database name, user parameters and so on).


-------------------------------------- --------------------------------------
#!/usr/bin/env python #!/usr/bin/env python2
import urllib import urllib


sql="SELECT * FROM my_table;" sql="SELECT * FROM my_table;"
Expand Down
2 changes: 1 addition & 1 deletion doc/test_images.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python2


# Cherokee Doc: Image checker # Cherokee Doc: Image checker
# #
Expand Down
2 changes: 1 addition & 1 deletion doc/test_links.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python2


# Cherokee Doc: Link checker # Cherokee Doc: Link checker
# #
Expand Down
2 changes: 1 addition & 1 deletion po/admin/generate_POTFILESin.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python2


# Cherokee POTFILES.in generator # Cherokee POTFILES.in generator
# #
Expand Down
2 changes: 1 addition & 1 deletion po/po_stats.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python2
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-


# Cherokee PO stats # Cherokee PO stats
Expand Down
2 changes: 1 addition & 1 deletion qa/fcgi.py
Expand Up @@ -34,7 +34,7 @@
Example usage: Example usage:
#!/usr/bin/env python #!/usr/bin/env python2
from myapplication import app # Assume app is your WSGI application object from myapplication import app # Assume app is your WSGI application object
from fcgi import WSGIServer from fcgi import WSGIServer
WSGIServer(app).run() WSGIServer(app).run()
Expand Down
2 changes: 1 addition & 1 deletion qa/run-tests.py
@@ -1,4 +1,4 @@
#!/usr/bin/env python #!/usr/bin/env python2
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-


# Cherokee QA Tests # Cherokee QA Tests
Expand Down

0 comments on commit 273575c

Please sign in to comment.