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
Boxiang Sun
cython
Commits
25e8707f
Commit
25e8707f
authored
Jan 18, 2011
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update "make repo" to use git.
parent
b6f88f83
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
20 deletions
+12
-20
MANIFEST.in
MANIFEST.in
+1
-1
Makefile
Makefile
+9
-10
setup.py
setup.py
+2
-9
No files found.
MANIFEST.in
View file @
25e8707f
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
include .
hg
rev
include .
git
rev
include setup.py
include setup.py
include setupegg.py
include setupegg.py
include bin/*
include bin/*
...
...
Makefile
View file @
25e8707f
PYTHON
?=
python
PYTHON
?=
python
REPO
=
http://hg.cython.org/cython-devel
REPO
=
git://github.com/cython/cython.git
all
:
local
all
:
local
local
:
local
:
${PYTHON}
setup.py build_ext
--inplace
${PYTHON}
setup.py build_ext
--inplace
.hg
:
REV := $(shell cat .hgrev)
.git
:
REV := $(shell cat .gitrev)
.hg
:
TMPDIR := $(shell mktemp -d tmprepo.XXXXXX)
.git
:
TMPDIR := $(shell mktemp -d tmprepo.XXXXXX)
.hg
:
.git
:
hg clone
--rev
$(REV)
$(REPO)
$(TMPDIR)
git clone
$(REPO)
$(TMPDIR)
hg
-R
$(TMPDIR)
update
cd
$(TMPDIR)
;
git checkout
-b
working
$(REV)
mv
$(TMPDIR)
/.hg .
mv
$(TMPDIR)
/
{
.git,.hgtags,.hgignore
}
.
mv
$(TMPDIR)
/.hgignore .
mv
$(TMPDIR)
/Doc/s5 Doc/s5
mv
$(TMPDIR)
/.hgtags .
rm
-rf
$(TMPDIR)
rm
-rf
$(TMPDIR)
repo
:
.
hg
repo
:
.
git
clean
:
clean
:
...
...
setup.py
View file @
25e8707f
...
@@ -3,15 +3,8 @@ from distutils.sysconfig import get_python_lib
...
@@ -3,15 +3,8 @@ from distutils.sysconfig import get_python_lib
import
os
,
os
.
path
import
os
,
os
.
path
import
sys
import
sys
if
'sdist'
in
sys
.
argv
and
sys
.
platform
!=
"win32"
and
sys
.
version_info
>=
(
2
,
4
):
if
'sdist'
in
sys
.
argv
and
sys
.
platform
!=
"win32"
:
# Record the current revision in .hgrev
assert
os
.
system
(
"git show-ref -s HEAD > .gitrev"
)
==
0
import
subprocess
# os.popen is cleaner but deprecated
changeset
=
subprocess
.
Popen
(
"hg identify --id --rev tip"
.
split
(),
stdout
=
subprocess
.
PIPE
).
stdout
.
read
()
rev
=
changeset
.
decode
(
'ISO-8859-1'
).
strip
()
hgrev
=
open
(
'.hgrev'
,
'w'
)
hgrev
.
write
(
rev
)
hgrev
.
close
()
if
sys
.
platform
==
"darwin"
:
if
sys
.
platform
==
"darwin"
:
# Don't create resource files on OS X tar.
# Don't create resource files on OS X tar.
...
...
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