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
Kirill Smelkov
cython
Commits
2229e63f
Commit
2229e63f
authored
Nov 23, 2009
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
0b8b1fb9
b86ec60c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
2 deletions
+25
-2
MANIFEST.in
MANIFEST.in
+1
-2
Makefile
Makefile
+13
-0
setup.py
setup.py
+11
-0
No files found.
MANIFEST.in
View file @
2229e63f
include MANIFEST.in README.txt INSTALL.txt ToDo.txt USAGE.txt
include COPYING.txt LICENSE.txt Makefile
recursive-include .hg *
include .hgignore .hgtags
include .hgrev
include setup.py
include bin/*
include cython.py
...
...
Makefile
View file @
2229e63f
PYTHON
?=
python
REPO
=
http://hg.cython.org/cython-devel
all
:
local
local
:
${PYTHON}
setup.py build_ext
--inplace
.hg
:
REV := $(shell cat .hgrev)
.hg
:
TMPDIR := $(shell mktemp -d tmprepo.XXXXXX)
.hg
:
hg clone
--rev
$(REV)
$(REPO)
$(TMPDIR)
hg
-R
$(TMPDIR)
update
mv
$(TMPDIR)
/.hg .
mv
$(TMPDIR)
/.hgtags .
rm
-rf
$(TMPDIR)
repo
:
.hg
clean
:
@
echo
Cleaning Source
@
rm
-fr
build
...
...
setup.py
View file @
2229e63f
...
...
@@ -3,6 +3,17 @@ from distutils.sysconfig import get_python_lib
import
os
,
os
.
path
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'
)
if
sys
.
platform
==
"win32"
:
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