Skip to content

Commit 856c44e

Browse files
committed
tools readme: update build commands
1 parent 9815c13 commit 856c44e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tools/python/README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ Install using `setup.py`:
1313
```console
1414
tar xfz phonenumbers-<version>.tar.gz
1515
cd phonenumbers-<version>
16-
python setup.py build
17-
sudo python setup.py install # or su first
16+
sudo python -m pip install . # or su first
1817
```
1918

2019
Running Tests
@@ -134,15 +133,17 @@ Release Procedure
134133
`git tag vX.Y.Z`
135134
- Push the tag to Github with:
136135
`git push <github-remote> vX.Y.Z`
136+
- Ensure you have the requirements to build:
137+
`pip install build twine`
137138
- Push the lite package to PyPI with:
138139
```
139-
cd python && rm -rf build dist && ./setup.py lite sdist bdist_wheel
140+
cd python/phonenumberslite && rm -rf build dist && python -m build
140141
twine check dist/*
141142
twine upload dist/*
142143
```
143144
- Push the package to PyPI with:
144145
```
145-
cd python && rm -rf build dist && ./setup.py sdist bdist_wheel
146+
cd python && rm -rf build dist && python -m build
146147
twine check dist/*
147148
twine upload dist/*
148149
```

0 commit comments

Comments
 (0)