Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
b86ec60c
Commit
b86ec60c
authored
Nov 22, 2009
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove repo from sdist, autogenerate .hgrev
parent
a9d3cbb1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
2 deletions
+12
-2
MANIFEST.in
MANIFEST.in
+1
-2
setup.py
setup.py
+11
-0
No files found.
MANIFEST.in
View file @
b86ec60c
include MANIFEST.in README.txt INSTALL.txt ToDo.txt USAGE.txt
include MANIFEST.in README.txt INSTALL.txt ToDo.txt USAGE.txt
include COPYING.txt LICENSE.txt Makefile
include COPYING.txt LICENSE.txt Makefile
recursive-include .hg *
include .hgrev
include .hgignore .hgtags
include setup.py
include setup.py
include bin/*
include bin/*
include cython.py
include cython.py
...
...
setup.py
View file @
b86ec60c
...
@@ -3,6 +3,17 @@ from distutils.sysconfig import get_python_lib
...
@@ -3,6 +3,17 @@ from distutils.sysconfig import get_python_lib
import
os
,
os
.
path
import
os
,
os
.
path
import
sys
import
sys
if
'sdist'
in
sys
.
argv
:
# Record the current revision in .hgrev
import
subprocess
# os.popen is cleaner but depricated
changset
=
subprocess
.
Popen
(
"hg log --rev tip | grep changeset"
,
shell
=
True
,
stdout
=
subprocess
.
PIPE
).
stdout
.
read
()
rev
=
changset
.
split
(
':'
)[
-
1
].
strip
()
hgrev
=
open
(
'.hgrev'
,
'w'
)
hgrev
.
write
(
rev
)
hgrev
.
close
()
compiler_dir
=
os
.
path
.
join
(
get_python_lib
(
prefix
=
''
),
'Cython/Compiler'
)
compiler_dir
=
os
.
path
.
join
(
get_python_lib
(
prefix
=
''
),
'Cython/Compiler'
)
if
sys
.
platform
==
"win32"
:
if
sys
.
platform
==
"win32"
:
compiler_dir
=
compiler_dir
[
len
(
sys
.
prefix
)
+
1
:]
compiler_dir
=
compiler_dir
[
len
(
sys
.
prefix
)
+
1
:]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment